Note that there are some explanatory texts on larger screens.

plurals
  1. POTextArea on form only taking a maximum of 50 characters?
    primarykey
    data
    text
    <p>When a user tries to enter a review in "textarea" in the form, only 50 characters of review is displayed. I have tried resolving the situation by disabling Jquery form validation changing the field type to tinytext, mediumtext. I am able to enter the full review 200 characters via PHPMyAdmin so I am guessing the problem is with my PHP but I am not able to see anything obvious . If any one could help it would be greatly appreciated.</p> <pre><code> &lt;label for="review"&gt;Your Review&lt;/label&gt; &lt;br/&gt; &lt;textarea name="review" id="review" rows="15" cols="60"&gt;&lt;/textarea&gt; // Check for a review if (empty($_POST['review'])){ $errors[] = "Please write a review"; } else { $review = (trim($_POST['review'])); } if (empty($errors)) { // If no errors were found. require_once('./includes/mysql_connect.php'); // Make the insert query. $query = "INSERT INTO films (movie_title, actor, rating, user_id) Values ('$mt', '$la', '$rating', '$user')"; $result = mysql_query($query); $id = mysql_insert_id(); $query = "INSERT INTO reviewed (review, movie_id) values ('$review', '$id')"; $result = mysql_query($query); &lt;div id="Review_container"&gt; &lt;?php require_once('./includes/mysql_connect.php'); $review = $_GET['id']; echo $review; ?&gt; &lt;/div&gt; Table structure for table `reviewed` CREATE TABLE IF NOT EXISTS `reviewed` ( `review_id` int(4) NOT NULL AUTO_INCREMENT, `review` mediumtext NOT NULL, `movie_id` int(4) NOT NULL, PRIMARY KEY (`review_id`), KEY `movie_id` (`movie_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; //No value for review if ($('#review').val() == "") { $('.error').append("&lt;li&gt;Please enter a review&lt;/li&gt;"); error = true; } if (error) { // If error found dont submit. e.preventDefault(); } }); // End of .submit function: review_a_film.php </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload