![]() |
|
| |||||||
| Notices |
| BlueVoda - General Issues All BlueVoda support issues that are not covered in the below forums. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| ||||
| ||||
| (please read entire post) I have two pages on my site that include submitting forms... one feedback and the other story submission. The page for submission works great, except that the screen that pops up after they hit submit saying "Thank you for submitting" allows the reader to go back or close out. Obviously if they close out, they close out of the site. I want this window to close out and return to the last page they were on. If someone could tell me how to correct this, that would be great. Otherwise, it works great and I receive the emails from the submissions. The other page, feedback, is not working at all. I set it up the same as the submission page, except of course the email address in the code is different along with the subject line. Here's the code for the form object properties for the feedback: <FORM NAME=Feedback METHOD=POST ACTION="feedback.php"> <DIV style="position:absolute; left:141px; top:345px; width:78px; height:30px; z-index:9" align="left" align="top"> <INPUT type="submit" name="Submit" value="Submit"> </DIV> <DIV style="position:absolute; left:23px; top:21px; width:310px; height:307px; z-index:10" align="left" align="top"> <TEXTAREA name="Feedback Form" style="WIDTH: 305px; HEIGHT: 302px" rows=21 cols=35>Write feedback here.</TEXTAREA> </DIV> </FORM> and here's the notepad file for this feedback form that has been saved as feedback.php, uploaded and currently resides in the lifeatfifty folder (same place as the other notepad file that seems to be working for my submission page): <HTML> <HEAD> <TITLE>Thank you for your Feedback</TITLE> </HEAD> <BODY> <H2>Thank you for your feedback.</H2> <?PHP $email = $HTTP_POST_VARS; $mailto = "[email="feedback@lifeatfifty.com"]feedback@lifeatfifty.com"; $mailsubj = "Feedback"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; } mail($mailto, $mailsubj, $mailbody, $mailhead); ?> </BODY> </HEAD> I did a copy and page for both codes, so I know they're identical except for the changes I made to the email, etc. What happens is that when you type something in the feedback box, the url changes to www.lifeatfifty.com/feedback.php but nothing else happens. My site is www.lifeatfifty.com... if someone could go to the feedback page and see what it's doing, I would be very grateful. Thank you in advance for your help and assistance. Patti |
|
#2
| ||||
| ||||
|
2 Problems: 1. There's no email field in the form. This code requires an editbox with the name 'email'. 2. The PHP code is not correct, why did you change it? Here's my orginal code: <HTML> <HEAD> <TITLE>Thank you for your feedback</TITLE> </HEAD> <BODY> <H2>Thank you for your feedback!</H2> <?PHP $email = $HTTP_POST_VARS[email]; $mailto = "yourname@yourdomain.com"; $mailsubj = "Feedback form"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form:\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { $mailbody .= "$key : $val\n"; } mail($mailto, $mailsubj, $mailbody, $mailhead); ?> </BODY> </HEAD>
__________________ Forum Moderator BlueVoda Specialist |
|
#3
| ||||
| ||||
|
Thanks Pablo... I used the code you supplied... I don't believe that I changed anything other than the email section, and added an email textbox to my form (although the email field apparently isn't mandatory in order for someone to submit) and now it's working. Can you tell me how to get the reader back to my site after the window comes up saying "thank you for your feedback"? Is it possible to put in a "return" button possibly? Thanks as usual, Patti Quote:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with forms/pages not loading properly | Troy | Forms | 9 | 11-24-2005 03:23 AM |
| E-mail form problems | prosper | Email Problems (POP, SMTP & Webmail) | 3 | 10-07-2005 10:49 PM |
| Trouble With Form | Rilstone Productions | General Support Issues | 2 | 09-28-2005 11:30 PM |
| HTML code for Contact Form | Patti Johnson | BlueVoda - General Issues | 2 | 09-22-2005 06:56 PM |
| E-Mail Form Problems | Chaz | General Support Issues | 6 | 07-26-2005 07:18 PM |