Jump to content

Recommended Posts

Posted

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!!

Posted

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

Posted (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 by RJSkon

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...