Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

How to handle form in PHP?
When we handle form in PHP keep that most important 
thing any form element of HTML page will be automatically goes on PHP scripts.
Example:
<html>
<body>
<form action="R4R Welcome.php" method="post"><input type="hidden" name="phpMyAdmin" value="f43d4e0b88acea2d2a393515f6bf38f2" /><input type="hidden" name="phpMyAdmin" value="70ac9566533a2665b6597346aab7f985" />
Name: <input type="text" name="Name" />
Password: <input type="password" name="Password" />
<input type="Submit" />
</form>
</body>
</html>
 When this code is executed.The value of both fields are display on R4R Welcome.php page. Automatically generated code on R4R Welcome page are:
<html>
<body>
R4R Welcomes You <?php echo $_POST["Name"]; ?>.<br />
Your password is <?php echo $_POST["Password"]; ?>
</body>
</html> 
Output:
R4R Welcomes You Abhi.
Your password is love.
Posted By: Name:Rajesh Kr URL: How to handle form in PHP?