I am creating a test form which I want you to send me the entered data to php
. He sends me the Name and the Mail but the text entered in TEXTAREA
does not send it to me. I leave the code
feedback.html:
<form action="feed.php" method="post">
<table>
<tr>
<td >Your Name:</td>
</tr>
<tr>
<td ><input type="text" name="name" size="25" maxlength="30" /></td>
</tr>
<tr>
<td >Your Email Address:</td>
</tr>
<tr>
<td ><input type="text" name="email" size="25" maxlength="30" />
</td>
</tr>
<tr>
<td >Your Feddback:</td>
</tr>
<tr>
<td ><textarea rows="6" cols="40" name="feedback" form="usrform" >
</textarea></td>
</tr>
<tr>
<td colspan="2" align="center"><input style="margin-left:-80px;"
type="submit" value="Send Feddback" name="submit" /></td>
</tr>
</table>
</form>
feed.php:
<?php
$name = $_POST["name"];
$email = $_POST["email"];
$feedback = $_POST["feedback"];
echo $name . "</br>";
echo $email . "</br>";
echo $feedback . "</br>";
?>