Cheryl Posted February 10, 2004 Posted February 10, 2004 I'm having trouble with form code...I am not sure what I need to get the submission to re-direct to the page I want it to go to after they hit submit? Anyone see the problem with this code: <form method="POST" action="cgi-bin/FormMail.pl"> <input type="hidden" name="recipient" value="sixxxpounder@hotmail.com"> <input type="hidden" name="subject" value="Interested Musician!"> <input type="hidden" name="required" value="realname,email"> <input type="hidden" name="redirect" value="musc.htm"> <p align="center"><font color="#FFFFFF">Your Name:</font><br> <input type="text" name="realname" size="40"></p> <p align="center"><font color="#FFFFFF">Your E-mail Address:</font><br> <input type="text" name="email" size="40"></p> <p align="center"><input type="submit" value="Submit" name="B1"></p> </form> Thanks in advance!! Quote
RJSkon Posted February 10, 2004 Posted February 10, 2004 Cheryl Does this help you any, <FORM ACTION="http://yoursite.com/cgi-bin/FormMail.pl" METHOD="POST"> <INPUT Type="Hidden" Name="recipient" Value="sixxxpounder@hotmail.com"> <INPUT Type="Hidden" Name="subject" Value="Interested Musician!"> <INPUT Type="Hidden" Name="redirect" Value="http://yoursite.com/redirect_page"> <INPUT Type="Hidden" Name="missing_fields_redirect" Value="http://yoursite.com/error/"> Your name: <INPUT Type="text" Name="realname" Size="40" Maxlength="255" Value=""><BR> Your E-mail address: <INPUT Type="text" Name="email" Size="40" Maxlength="255" Value=""><BR> <INPUT Type="Hidden" Name="required" Value="realname,email"> <BR><INPUT Type="Submit" Value="Submit"> <INPUT Type="Reset" Value="Reset"> </FORM> I added a missing fields redirect also, for submitters that don't fill in their Name and Email address. In this case I used absolute URL's, but that is not required. Richard Quote
Cheryl Posted February 10, 2004 Author Posted February 10, 2004 Hey Richard: Thanks for the help on the form code...except it STILL will NOT redirect? ...now it goes to: http://www.aepmusic.com/cgi-bin/FormMail.pl ???? http://www.aepmusic.com/ Any ideas? Cheryl Quote
RJSkon Posted February 11, 2004 Posted February 11, 2004 (edited) Cheryl Do you have a the FormMail.pl script set up and in your cgi-bin, that's what make the Form work. The form action is looking for the Perl script at, http://www.aepmusic.com/cgi-bin/FormMail.pl I have a test page set up with a few forms, if you care to see them, http://www.rjskon.com/forms/ You can try all of them, I think that they still work. I'm using a couple of the "Matts scripts" and the "NMS scripts" in the cgi-bin. Richard BTW, here are some more Forms that I have set up with a Freebie third party host, http://www.rjskon.com/cut_paste/ Edited February 11, 2004 by RJSkon Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.