I am trying to insert data into the database. It is a text area from html which looks like this where is says description. Everything else works fine.
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form2" method="post" action="uploadmachine.php" enctype="multipart/form-data">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong> Upload New Machine </strong></td>
</tr>
<tr>
<td width="300">Name the machine</td>
<td width="100"><input name="machinename" type="text" id="machinename"></td>
</tr>
<tr>
//This is the only issue
<td> Description </td>
<td><TEXTAREA NAME="Descrpition" ROWS=3 COLS=30 maxlength=100 ></TEXTAREA></td>
</tr>
<tr>
<td> Upload picture </td>
<td><input id="infile" name="infile[]" type="file" onBlur="submit();" multiple><td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Upload"></td>
</tr>
</table>
</td>
</form>
</tr>
</table>
It take the description input to a php page called uploadmachine.php. From there the code looks like this,
$description = mysql_real_escape_string($_POST['Descrpition']);
//I echo $description to make sure the value is being carried over and it is.
echo $description;
//I am connected to the database
mysql_select_db("db", $con);
mysql_query("INSERT INTO machinelist
VALUES ('$fPath','$description','$machinename')");
Only the first row is of the description is put into the database. The descrption is being put into a column which is set to longtext. How can I save everthing the user types and how many spaces and enters he has typed?