Moderators: Derry, Goldie, Harpo
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Working Mechanic
Posted
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");
?>
 
Posts: 35 | Registered: September 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Honorary 'Creative' Mechanic
Picture of Klimt
Posted Hide Post
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
 
Posts: 1753 | Location: Vienna, Austria | Registered: July 17, 2006Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Posted Hide Post
I changed it. Unfortunately, still not working. Any other suggestions?
 
Posts: 35 | Registered: September 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
Yes, try again. This time add the ".com" as part of your domain name, as in:
quote:
http://www.krystalq.com/SendMail.php
 
Posts: 5152 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
Working Mechanic
Posted Hide Post
That worked. New problem now, I don't receive the email when the form is submitted. argh.

quote:
Originally posted by larryd:
Yes, try again. This time add the ".com" as part of your domain name, as in:
quote:
http://www.krystalq.com/SendMail.php

This message has been edited. Last edited by: Forish,
 
Posts: 35 | Registered: September 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Guru 'Geezer' Mechanic
Picture of larryd
Posted Hide Post
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.
 
Posts: 5152 | Registered: December 03, 2006Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 


™ & © 1998 - 2008, Virtual Mechanics Inc. All rights reserved.