Coding PHP file Troubles
Hi, I am having troubles figuring out how to code the php file and have researched it for days. I am new to this so that could be the
huge proble. I want to add a form with one question to a web page and have the information sent to my emails. Can you help me with the coding of the php file?
Thank you in advance!
php file code:
<?php
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
// Send
mail('npolen@theram.com', 'Feedback Form Answer', $message);
?>
question sample code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="GET" action="/form/send_mail3.php">
<label for="dancemove">What is your favorite dance move?</label>
<input type="text" name="dancemove" id="dancemove" />
<input type="submit" name="send" id="send" value="Submit" />
</form>
</body>
</html>
