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
- HTML Form Example in PHP
- PHP HTML Form Input Example
- PHP HTML Form radio button Example
- 20 steps to make CakePHP Blog Project
- MySQL strcmp() Function Example :: on Equals,Large.. Values
- MySQL interval() Function Example
- MySQL Sub-Query: INSERT INTO SELECT *... Example
- MySQL Sub-Query: CREATE TABLE SELECT... Example
- MySQL Stored Procedure Function: How to Drop a Function Example
- PERL Example: User Input in PERL


No comments:
Post a Comment
leave your comments here..