ywaters Posted February 18, 2014 Share Posted February 18, 2014 I have a small html form that I would like to use to gather data from. The code is <?php $Name = $_POST['Name'];$Email = $_POST['Email'];$Telephone = $_POST['Telephone'];$Message = $_POST['Message'];$to = "ywaters2@hotmail.com";$subject = "New Message"; mail ($to, $subject, $Message, "From: ". $Name);echo "Your message has been sent"; ?> I have no idea where the error is I keep getting. Can anyone help me out, please? Thank you for your help!! Quote Link to comment Share on other sites More sharing options...
.josh Posted February 18, 2014 Share Posted February 18, 2014 you probably aren't filling out one of your form fields, so there's no one or more $_POST['whicheveroneyoudidnotfillouthere'] indexes. If not that, then check that your form method is POST and not GET Quote Link to comment Share on other sites More sharing options...
Maq Posted February 19, 2014 Share Posted February 19, 2014 You should be developing with error reporting on so that you can spot these issues early on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.