Click to See Complete Forum and Search --> : javascript form troubles


xibit1a
09-01-2003, 10:10 PM
Hi, am sort of new to this stuff. I can do HTML, but when I get to scripts, I lose it. Well I made up a site with some forms on it using M$ Publisher. Well before I realized it, I transferred the files up to my site without looking over the form scripting. Does anyone, can anyone, tell me what I'm missing or doing wrong? I'd like to use the formmail script I read so much about, but I think I'll have to start over to make it work! Am considering going out and buying Dreamweaver and redoing my site. But for now what I have works, just need some guidance to get me in the right dierection. Here is one of my forms' code:

<SCRIPT LANGUAGE="JavaScript">
<!--- hide script from old browsers

function FValidateControl(control) {
if (control.value=="") {
alert(control.name+": this is a required field, and it must be filled in before your form can be published to the Web.")
control.focus()
return false }
return true }

function FSubmitValidation(form) {
if (!FValidateControl(form.Name)) return false
return true }

// end hiding from old browsers -->
</SCRIPT>

</head>
<body bgcolor="#ffffff" link="#000080" vlink="#660099" text="#000000" background="back.gif" topmargin=0 leftmargin=0>
<form action="http://strnadff.us/cgi-bin/formmail.pl" method="post" onsubmit="return FSubmitValidation(this)">
<input type=hidden hame="recipient" value="support@emergence.com">
<!--webbot bot="SaveResults" s-email-address="strnad3@adelphia.net"
s-email-format="TEXT/PRE" b-email-label-fields="TRUE"
s-email-Subject="Team Picks From Website" s-builtin-fields="Date Time"
b-email-subject-from-field="FALSE"-->
<a name=top></a>

Just looking for a bit of help is all...any that is offered will be gladly accepted!;)

Khalid Ali
09-01-2003, 10:15 PM
Originally posted by xibit1a
Does anyone, can anyone, tell me what I'm missing or doing wrong? .................But for now what I have works, just need some guidance to get me in the right dierection. Here is one of my forms' code:


Can you tell from those to phrases above that what is the problem for which some one should reply to this thread??????

Please read this thread first
http://forums.webdeveloper.com/showthread.php?s=&threadid=16096

xibit1a
09-01-2003, 10:31 PM
My apologies. What I meant was that my site works and those that have to fill out the form will email me their info instead of gathering it from the site for now.

The problem I'm having is that when you make your selections and submit, I get a 404 error file not found and then it goes to a huntbar.com search menu.

Khalid Ali
09-01-2003, 10:38 PM
make sure the resource you provide in the action attributes value is the valid one

action="http://strnadff.us/cgi-bin/formmail.pl"