PHP HTML Form textarea Example

PHP HTML Form textarea Example

make a file “php-html-form-textarea-example.php" then copy & paste blow code.

php-html-form-textarea-example.php

<?php

   if(isset($_POST['BtnSubmit']))
   {
      echo "<h2>Bellow is the form data</h2>";
      echo "<hr>";
      echo "</br>Your Name :{$_POST['Fullname']}";
      echo "</br>Your Address :{$_POST['UserAddress']}";
      echo "<hr>";
   }

?>

<h2>PHP HTML Form textarea Example</h2>

<form name="UserInformationForm" method="POST" action="#">
      Enter Your Full Name :
      <input name="Fullname" type="text" value="<?php echo $_POST['Fullname']; ?>"><br/><br/>
      Enter Your Address :
      <textarea name="UserAddress" rows="3" cols="20"><?php echo $_POST['UserAddress']; ?></textarea>
      <br/><br/>
      <input name="BtnSubmit" type="submit" value="Submit">
</form>

Fire-up your favorite browser to see the effect of a blank HTML form with textarea in PHP "http://localhost/blog/php-html-form-textarea-example.php". Browser output should look like as follows:

 

Now fill-up the HTML form and get submitted data in PHP "http://localhost/blog/php-html-form-textarea-example.php". Browser output should look like as follows:

 

Related Tutorial Examples

  1. HTML Form Example in PHP
  2. PHP HTML Form Input Example
  3. PHP HTML Form radio button Example
  4. 20 steps to make CakePHP Blog Project
  5. MySQL strcmp() Function Example :: on Equals,Large.. Values
  6. MySQL interval() Function Example
  7. MySQL Sub-Query: INSERT INTO SELECT *... Example
  8. MySQL Sub-Query: CREATE TABLE SELECT... Example
  9. MySQL Stored Procedure Function: How to Drop a Function Example
  10. PERL Example: User Input in PERL

No comments:

Post a Comment

leave your comments here..