0

what is wrong with this form????? i can see the name and email but not the msg??

<?PHP
echo $_POST["name"]; //works
echo $_POST["msg"];  //nothing prints out
?>
<form method="post" action="form.php" style="margin:0; padding:0">
    <b>NAME:</b><br>
    <input name="name" type="text" class="form" id="name">
    <br>
    <br>
    <br style="line-height:8px">
    <b>E-MAIL:</b><br>
    <input name="email" type="text" class="form">
    <br>
    <br>
    <br style="line-height:4px">
    <b>MESSAGE / QUESTION /SUGGESTION:</b><br>
	<textarea name="msg" cols="70 rows="6" class"Form></textarea>
	<br>
    <br>
    <input name="submit" type="image" value="send" style="margin:0" align="top" src="images/send.png">
	</form>
2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by diafol
0

fixed textarea and still not working

<textarea name="msg" cols="70" rows="6" class"form" ></textarea>
0

In fact you didn't fix it:

<textarea name="msg" cols="70" rows="6" class="form" ></textarea>

You need a '=' between attributes and values. I suggest using id="msg" in the tag as well, but this shouldn't matter.

Ensure that you don't have another name="msg" elsewhere in the page.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.