PDA

View Full Version : sumit button


murphyb
12-28-2003, 03:47 AM
hello,

I am working on a html page with a form which has a submit button and reset button. The reset button is working ok to clear off the data fields information, but the submit button does not at the moment. This submit button is designed to send the data fileds in the form to the designated recipient. Everytime I press the button, it asks me to save the handler.cgi, and the recipient never receive an email. This cgi file i got from somewhere in the internet, it is supposed to use for testing.

This is my first time creating such form with submit button. How do I get the button? what do i need to attach to the button? How can i test on local pc first prior to upload the files to ISp?
Attach is a cgi file for your review.

Thank you in advance.


Here is my form coding:
-----------------------------------
<FORM Method="post" Action="/cgi-bin/handler.cgi">
<!--- <FORM Method="post" Action="http://www.isp.co.uk/cgi-bin/formmail.pl"> -->
<input type="hidden" name="_MAILTO" value="abc@hotmail.com">
<input type="hidden" name="_SUBJECT" value="New Dealer Application Form">
<input type="hidden" name="_THANKS" value="thanks.html">

---- other data fields ----
---- other data fields ----
---- other data fields ----
.......

<input name="Submit Form" type="submit" id="Submit Form3" value="Submit Form" onClick="('Thank you for your business. Your form have been sent.')">

<input name="Clear Form" type="Reset" id="Clear Form7" value="Clear Form">

Jeff Mott
12-28-2003, 03:53 AM
it asks me to save the handler.cgiThis sounds like your server is not configured to execute CGI scripts, thus it sends back the file instead of executing it. To fix this you will need to check your server config or contact your host for instructions.

murphyb
12-28-2003, 03:58 AM
Jeff,

I have not been to contact my ISP yet, but i m testing on local pc.

Do u any other way simpler?

dswimboy
12-31-2003, 07:04 PM
to test perl/cgi scripts on my PC, i use Microsoft IIS 5.1 and ActiveState Perl. IIS came with XP, and ActiveState Perl is a free download from ActiveState.com (http://www.activestate.com).
if you are running *nix, you should have a local webserver and perl installed on your box.
if you're win 9*...then i dunno. i'm sure there are small webservers you can use with ActiveState, i just don't know any.