PDA

View Full Version : Form submit button not working


mattym
01-09-2004, 04:53 PM
Hi all,

I have a lengthy online job application form I have created. Unfortunately now I have done the main part and come to test it it doesn't appear to work.

When i click the Submit button absolutely nothing happens at all. It is supposed to use a cgi script to process the form and create a formatted email to the recipient, then redirect to a acknowledgement page.

Here (http://www.mamoo.co.uk) is a link to the form itself.

Any help would be appreciated as I just cannot see anything wrong!

many thanks

Matt

Nightfire
01-09-2004, 05:15 PM
Works for me

Thank You



Hazlewood Castle will hold and process your information including your contact details on our database and may use these to provide details of other events and promotions that may interest you.

If you do not want to join our database, please write to us at Hazlewood
Castle requesting your removal.


Maybe the ONSUBMIT="" in the form is causing problems with your browser?

mattym
01-09-2004, 05:30 PM
It still doesn't work for me. I have had other people try it on different machines and it won't work for them either????

I just can't see a reason why it won't work? Any ideas?

Oh, I've taken out the ONSUBMIT

thanks

matt

sage45
01-09-2004, 07:37 PM
I can think of a couple of reasons...

First have you ensured that public read and execute rights have been allowed on the cgi-bin folder???

Second, you might try adding a method attribute:


<FORM NAME="form 1" METHOD="POST" ACTION="http://www.thisisyork.co.uk/cgi-bin/formmail.pl">


Edited: After adding the method attribute I was able to successfully submit and run the perl script... ;)

HTH,

-sage-

mattym
01-12-2004, 10:41 AM
Hi there,

Thanks for this. You are right that made the form submit and I received the email from the perl script too.

Only problem that I had was that after the form had submitted the browser tried to display the pearl script (http://www.thisisyork.co.uk/cgi-bin/formmail.pl) instead of redirecting to the thankyou page. Hmmmm.

If anyone has any idea why that would be cool

thanks again

Matt

sage45
01-12-2004, 02:15 PM
Have you tried it on another machine??? Most likely if you are logged onto the server locally or logged in with some sort of elevated rights, it will look like you are accessing the perl script... When I ran it I didn't have any problems... Another thing to consider is that it may be a local setting on the machine you used... When I went to the link that you provided for the perl script this is what I got:

Bad Referrer - Access Denied
The form attempting to use FormMail resides at http://www.codingforums.com/newreply.php?s=&action=newreply&threadid=31279, which is not allowed to access this cgi script.
If you are attempting to configure FormMail to run with this form, please contact your FormMail administrator, telling them you need it to work for 'www.codingforums.com'.

FormMail V1.6 © 1995 - 1997 Matt Wright
A Free Product of Matt's Script Archive, Inc.

HTH,

-sage-