View Full Version : FormMail & FrontPage
goalchristie
03-23-2004, 11:00 AM
I've been looking at this form too long, and I don't think I could find an error if it was blinking in the code at this point.
I created a survey in FrontPage and I can't get it to work. I'll be honest that I don't know much about how forms work, but I've searched this forum and tried just about everything I've seen suggested that looks even remotely close to a possible solution for me.
<form action="cgi-sys/FormMail.pl" method="POST">
<input type="hidden" name="recipient" value="me@mydomain.org">
survey stuff in here...to long to bother posting
<input type="submit" value="Submit" name="Submit"><input type="reset" value="Reset" name="Reset">
One thing I'm really not clear on is whether or not I need to put it in a particular folder on the site. I've probably gone too far on organizing, but I try to keep everything but index.html in another folder relevant to the topic.
I know this is probably painfully obvious, but I just can't make sense of it anymore. My fried little brain will appreciate any help.
Couple things
-include a input field for the "from" (hidden or not. needs to be there)
-another one for "subject"
-try putting "/cgi-sys/" instead of "cgi-sys/"
-What exactly happens when you try to use the form?
without the rest of the code there....cant really tell you what its doing. Link us ?
goalchristie
03-23-2004, 11:57 AM
Okay, I've made a couple of changes and I'm still not having much luck.
<form action="/cgi-sys/FormMail.pl" method="POST">
<input type="hidden" name="recipient" value="myemail@mydomain.org">
<input type=hidden name="redirect"
value="http://www.mydomain.org/surveythankyou.html">
<INPUT TYPE="hidden" NAME="subject" VALUE="Former Member Survey">
<p align="left">
<input type="radio" value="YesSend" checked name="Rejoin">Yes! Please send me an application!
<br>
<input type="radio" name="Rejoin" value="YesExpect">Yes! I would like to rejoin. I will submit the <a href="member/memberapp.pdf" target="_blank"> online application</a> today!
<br>
<input type="radio" name="Rejoin" value="NoRemove">No, but thank you for the invitation. Please remove me from your database.
<br>
<input type="radio" name="Rejoin" value="NoLeave">No, but thank you for the
invitation.<p>
<p align="left">Old Member Number (available in the email body): <input type="text" name="MemberID" size="6">
<br>
Name: <input type="text" name="Name" size="40">
<br>
Current Mailing Address: <input type="text" name="Address1" size="60">
<br>
City: <input type="text" name="City" size="30">
State: <select size="1" name="State">
<option>Alabama</option> <option>Alaska</option> <option>Arizona</option> <option>Arkansas</option> <option>California</option> <option>Colorado</option> <option>Connecticut</option> <option>Delaware</option> <option>Florida</option> <option>Georgia</option> <option>Hawaii</option> <option>Idaho</option> <option>Illinois</option> <option>Indiana</option> <option>Iowa</option> <option>Kansas</option> <option>Kentucky</option> <option>Louisiana</option> <option>Maine</option> <option>Maryland</option> <option selected>Massachusetts</option> <option>Michigan</option> <option>Minnesota</option> <option>Mississippi</option> <option>Missouri</option> <option>Montana</option> <option>Nebraska</option> <option>Nevada</option> <option>New Hampshire</option> <option>New Jersey</option> <option>New Mexico</option> <option>New York</option> <option>North Carolina</option> <option>North Dakota</option> <option>Ohio</option> <option>Oklahoma</option> <option>Oregon</option> <option>Pennsylvania</option> <option>Rhode Island</option> <option>South Carolina</option> <option>South Dakota</option> <option>Tennessee</option> <option>Texas</option> <option>Utah</option> <option>Vermont</option> <option>Virginia</option> <option>Washington</option> <option>West Virginia</option> <option>Wisconsin</option> <option>Wyoming</option></select>
Zip Code: <input type="text" name="Zip" size="10">
<br>
Current Email Address: <input type="text" name="CurrentEmail" size="60">
<br><br>
In order to better serve our members, we need to hear from you! Your answers will not affect your membership status, so please be honest. (Please check all that apply.)
<br><br>
1) What caused your membership to lapse?
<br>
<input type="checkbox" name="LapseForgot" value="ON">Simply forgot to renew
<br>
<input type="checkbox" name="LapseHardship" value="ON">Financial hardship
<br>
<input type="checkbox" name="LapseMoved" value="ON">Moved
<br>
Other:
<br>
<textarea rows="3" name="LapseOther" cols="75"></textarea>
<br><br>
2) What did you like about being a member?
<br>
<input type="checkbox" name="LikeMessage" value="ON">Receiving the newspaper every month
<br>
<input type="checkbox" name="LikeEvents" value="ON">Sponsored events
<br>
<input type="checkbox" name="LikeLegislative" value="ON">Legislative updates
<br>
<input type="checkbox" name="LikeLobbyist" value="ON">Knowing that I have a lobbyist fighting for my rights
<br>
Other:
<br>
<textarea rows="3" name="LikeOther" cols="75"></textarea>
<br><br>
3) What did you dislike about being a member?
<br>
<textarea rows="3" name="Dislike" cols="75"></textarea>
<br><br>
4) What would you change?
<br>
<textarea rows="3" name="Change" cols="75"></textarea>
<br><br>
5) Do you have any additional comments?
<br>
<textarea rows="3" name="Comments" cols="75"></textarea>
<br><br>
<input type="submit" value="Submit" name="Submit">
<input type="reset" value="Reset" name="Reset">
</p>
</form>
When I hit "Submit," I get a HTTP 404 Not Found page.
Double check the value in:<input type=hidden name="redirect"
value="http://www.mydomain.org/surveythankyou.html"> as this may be giving you the 404 error.
As painful as it may be we could help more if we could see the actual page with the form that is giving you the trouble.
Well. It works. 404 = page does not exist. Because I copied and pasted here. Most likely you dont have "http://www.mydomain.org/surveythankyou.html"
Because all that works...email sent and all....
bah.....easy to abuse :-\ :P
yeah. It works. Just your 'redirect' page is not there :)
goalchristie
03-23-2004, 12:39 PM
My redirect page is there, and I've double checked it several times.
I'm not getting the emails or any sign that the form is working.
The page it's sending me to that says it's not there is: http://www.mydomain.org/cgi-sys/FormMail.pl
Well your exact code worked for me. So try submitting a TT, might be an issue with it on your server.
goalchristie
03-23-2004, 08:03 PM
Thanks everyone! It still doesn't work because I haven't gotten a response on the ticket I submitted this afternoon, but hopefully it will soon.
vBulletin® v3.7.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.