|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
i'm creating a webpage to take input from user and send it to a cgi file, except that i'm missing the cgi- file, if someone cn send me the neccasary cgi file or changes to my code i would be very grateful, thanks
the following is the codeing: <html><head> <title>Register</title> <style> input,body{font-size:9pt} </style> </head> <script><!-- function conf(){ var f1=document.f1 if(f1.pass.value!=f1.rpass.value){ alert('Please confirm password!'); f1.pass.value="" f1.rpass.value="" return false; } if(f1.pass.value=="" || f1.user.value==""){ alert('Please enter username and password!'); return false; } if(f1.email.value.indexOf("<A href="file://\")!=-1">\\")!=-1){ alert('EMAIL addres contains invalid symbol!') return false } if(f1.from.value.indexOf("<A href="file://\")!=-1">\\")!=-1){ alert('"Location" contains invalid symbol!') return false } var s=f1.email.value + "\\\\"+ f1.from.value f1.data.value=s.replace(/\"/g,"\\\"") // replace " to \" } //--></script> <body bgcolor="#FFC080"> <p><br> <form method="POST" name=f1 style="margin:0px" action="signup" onsubmit="return conf()"> Username: <input type="text" size=10 name=user><br> Password: <input type="password" size=10 name=pass><br> Confirm password:<input type="password" size=10 name=rpass><br> Email address:<input type="text" size=10 name=email><br> Location (where are you now, roughly):<input type="text" size=10 name=from><br> <input type=hidden name=data> <input type="submit" value="* OK *"> </form></body></html> thanks |
|
#2
|
||||
|
||||
|
You haven't even explained what you are trying to accomplish.
|
|
#3
|
||||
|
||||
|
hit and run post!
|
|
#4
|
||||
|
||||
|
There are free CGI files available on the web such as Formmail.cgi and it has instructions about how to change your form to fit its code. Form Mail is available at Matt's Script Archive.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > Need help with html |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|