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>

Recommended Answers

All 2 Replies

fixed textarea and still not working

<textarea name="msg" cols="70" rows="6" class"form" ></textarea>
Member Avatar for diafol

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.