Forum Moderators: open

Message Too Old, No Replies

Submitting forms

         

m737

3:18 pm on Feb 18, 2004 (gmt 0)



Hi,

I'm having a problem with a HTML form that I'm working with. I want it to submit the form to an email address and redirect the user to a thank you page. I've tried a couple of things like closing it when the submit button is clicked, but then the email won't send for me. I also tried using an on click to go to a the thank you page but once again it goes to the page but I dont recieve the mail.

Any idea how to get around this!

Thanks
M

BlobFisk

3:38 pm on Feb 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, m737!

Are you using a server side script or just a mailto: command?

southarkwright

1:23 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



Look into JMAIL. You can do exactly what you need with it. if you need help let me know, i'll get you the code needed to do this.

moose606

3:38 pm on Feb 20, 2004 (gmt 0)

10+ Year Member



You need to have a cgi script, like formmail, and access it as follows:
<form action="/cgi-bin/formmail.pl?http://www.yourdomain.com/thanks.html"
method="post">
<input type="hidden" name="recipient" value="youremail address here">
<input type="hidden" name="subject" value="Website Feedback Form">

This will work, providing you have the script in your cgi bin.

Khemikal

2:02 am on Feb 22, 2004 (gmt 0)

10+ Year Member



I'd suggest to not use a CGI form mail script. They can get hit pretty hard by the spambots. I'd highly suggest a php based form mail, much like Aformmail.

Khem