First of all, I'll admit to being a novice where php is concerned. Here's my problem.
I am developing a feedback form, which will be emailed to me when it is submitted. I have the form layout the way I want it, and following a book, have put together a script for handling the form. My problem is in the script. When I tested it on a server, I received an error message stating that no input file was specified. Im not really sure how to change the code to make it work. If someone could look at the code below and help me fix it, I would really appreciate it.
This is the code for the html form:
<form name="formFeedback" method="post" action="send_Feedback.php">
<div align="left"></div>
<table width="67%" height="696" border="1" bordercolor="#FFFFFF">
<tr>
<td bgcolor="#e6dfa5"> <p>
<label><font color="#0000FF"><strong>1. What is your name? </strong></font></label>
<strong><font color="#0000FF">(optional) </font></strong></p></td>
</tr>
<tr>
<td height="59"> <div align="center">
<p> Name:
<input name="Name" type="text" id="Name" size="30">
<br>
</p>
</div></td>
</tr>
<tr>
<td bgcolor="#e6dfa5"> <label><font color="#0000FF"><strong>2. What is
your e-mail address? (optional)</strong></font></label> <font color="#0000FF"> </font></td>
</tr>
<tr>
<td height="117"> <p align="center"><font color="#0000FF"><font color="#000000">
Please indicate the email address to which you would like a response
to be sent.</font> </font></p>
<p align="center">Email Address:
<input name="EmailAddress" type="text" id="EmailAddress" size="30">
<br>
Example: GoodBook@readme.com<br>
<br>
</p></td>
</tr>
<tr>
<td bgcolor="#e6dfa5"> <label><font color="#0000FF"><strong>3. What are
you writing about?</strong></font></label> </td>
</tr>
<tr>
<td height="93"> <p align="center">Please choose the topic that most appropriately
fits your message.</p>
<p align="center">
<label><font color="#0000FF">
<select name="Topic" id="Topic">
<option value="Please Select" selected>Please Select</option>
<option value="Web Bugs">Web Bugs</option>
<option value="Textbook Problem">Textbook Problem</option>
<option value="General Suggestions">General Suggestions</option>
<option value="Questions">Questions</option>
</select>
</font></label>
<label><br>
<br>
</label>
</p></td>
</tr>
<tr>
<td bgcolor="#e6dfa5"> <label><font color="#0000FF"><strong>4. Type your
feedback here:</strong></font></label> <font color="#000000"> </font></td>
</tr>
<tr>
<td height="241"> <p align="center">
<label><font color="#000000">Please be as detailed and descriptive
as possible.</font></label>
</p>
<p align="center">
<textarea name="Feedback" cols="65" rows="10" id="Feedback"></textarea>
</p></td>
</tr>
<tr>
<td height="23" bgcolor="#e6dfa5"> <label><font color="#0000FF"><strong>5.
Submit the form:</strong></font></label> <strong><font color="#0000FF"> </font></strong></td>
</tr>
<tr>
<td><div align="center">
<p><font color="#0000FF">
<input name="Submit" type="submit" id="Submit" value="Submit">
<input name="Reset" type="reset" id="Reset" value="Reset">
</font></p>
</div></td>
</tr>
</table>
<p>
<label></label>
</p>
</form>
Here is the php script that I put together to handle the form:
<?
$msg = "E-mail sent from www site\n";
$msg .="Sender's Name: \t$name\n";
$msg .="Sender's Email:\t$emailaddress\n";
$msg .="Topic:\t$topic\n";
$msg .="Message:\t$feedback\n\n";
$to = "stormyeyedbear@gmail.com";
$subject = "ASPS Feedback";
$mailheaders = "From: My Web Site <> \n";
$mailheaders .= "Reply-To: $emailaddress\n\n";
mail($to, $subject, $msg, $mailheaders);
?>
<html>
<head>
<title>Feedback Form Sent</title>
</head>
<body>
<h2>The following e-mail has been sent:</h2>
<p><strong>Your Name:</strong><br>
<? echo "$name"; ?></p>
<p><strong>Your Email Address:</strong><br>
<? echo "$emailaddress"; ?></p>
<p><strong>Topic:</strong><br>
<? echo "$topic"; ?></p>
<p><strong>Feedback:</strong><br>
<? echo "$feedback"; ?></p>
</body>
</html>