HI,
I have a form with a huge textarea field and I am not sure how to format the textarea to make it work with php.
I tried testing a simple field using a small texarea that was virtually wrapped named largetextfield. For some reason, the textarea is not being inserted into my database. I think the actual php code is working fine because I am not getting any error messages, but I am not sure...
Here is my php code:
<?$firstname=$_POST['First_Name']; $email=$_POST['E_mail']; $lastname=$_POST['Last_Name']; $largefield=$_POST['largefield']; mysql_connect("localhost", xxxxxxxx", "xxxxxxxx") or die(mysql_error()); mysql_select_db("xxxxxxxx") or die(mysql_error()); mysql_query("INSERT INTO `data` VALUES ('$firstname', '$email', '$lastname', '$largefield')"); Print "Your information has been successfully added to the database."; ?>
Can anyone help me??