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 = "[email protected]";$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!! Link to comment https://forums.phpfreaks.com/topic/286291-undefined-index/ 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 Link to comment https://forums.phpfreaks.com/topic/286291-undefined-index/#findComment-1469419 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. Link to comment https://forums.phpfreaks.com/topic/286291-undefined-index/#findComment-1469571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.