Virtual Mechanics: Community Forums and FAQs
Virtual Mechanics: Community Forums and FAQs
WebDwarf, SiteSpinner, SiteSpinner Pro 'How do I...'
Form not working|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Working Mechanic |
I created the form in WFD, copied the code. Am using a SendMail.php but the form is dead-ending when I hit submit. Help.
http://www.krystalq.com/Contact_Us.html Here is the sendmail script: <?php $ForwardTo="forish@yahoo.com"; $contact=$_REQUEST['CONTACT']; $street=$_REQUEST['STREET']; $town=$_REQUEST['ADDRESS']; $zip=$_REQUEST['ZIP']; $event=$_REQUEST['EVENT']; $date=$_REQUEST['DATE']; $guests=$_REQUEST['GUESTS']; $email=$_REQUEST['EMAIL']; $phone=$_REQUEST['PHONE']; $special=$_REQUEST['SPECIAL']; $entry = "Contact: $contact\n\r"; $entry .= "Street: $street\n\r"; $entry .= "Town: $address\n\r"; $entry .= "Zip: $zip\n\r"; $entry .= "Event: $event\n\r"; $entry .= "Date: $date\n\r"; $entry .= "Guests: $guests\n\r"; $entry .= "Email: $email\n\r"; $entry .= "Phone: $phone\n\r"; $entry .= "Special:\n\r".$_REQUEST['SPECIAL']; mail($ForwardTo, "inquiry", $entry, "From: $email"); header("Location: thanks.html"); ?> |
||
|
|
Honorary 'Creative' Mechanic |
In your form (html) you forgot to write the full URL where your script is placed. At the moment it looks like this:
form name="New_Form" action="http://SendMail.php and it should be something like: http://www.krystalq.com/SendMail.php |
|||
|
|
Working Mechanic |
I changed it. Unfortunately, still not working. Any other suggestions?
|
|||
|
|
Guru 'Geezer' Mechanic |
Yes, try again. This time add the ".com" as part of your domain name, as in:
|
|||
|
|
Working Mechanic |
That worked. New problem now, I don't receive the email when the form is submitted. argh.
This message has been edited. Last edited by: Forish, |
|||
|
|
Guru 'Geezer' Mechanic |
I sent a test message and was redirected to the thank you page, so the PHP script seems to be working.
If you are not receiving e-mails, check the FAQs on your host. Who is your hosting service? Some servers require the user's in-box be read before an e-mail can be send (this is down to prevent spam). If this is the case, the FAQs should instruct you on the steps needed to get the script working. |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|

