With the retrieval done before, we can now output the retrieved data Parameters: This function accepts four parameters as mentioned above and described below: Return Values: This function returns the string which has been encoded. Experience. How to strip out HTML tags from a string using JavaScript ? How to Retrieve Data from a Drop-down List with PHP $comments= $_POST['comments']; To show the values in the input fields after the user hits the submit button, we add a little PHP script inside the value attribute of the following input fields: name, email, and website. echo "The comment that you entered is:" . "" Just remember that it is going to display as text in the textarea. In this tutorial, we have explained the following method to fetch data from database in PHP and display it into an HTML table. like: In this method, < is replaced by < and > is replaced by >. How to call PHP function on the click of a Button ? How to replace plain URL with link using JavaScript ? How to create long shadow of text without using text-shadow in HTML and CSS ? How to Retrieve Data from an Array of Checkboxes with PHP None of that needs to execute it is just to show the code to others. Here are some of the most important: form: Associates the textarea with a form. How to get input from HTML, do calculation and display output in text box. Method 1: This method uses id attribute of textarea with value property to change the content of