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!;)
<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!;)