Saturday, 31 January 2015

Form

In php form use to collect information and get or post it on the given page we will discuss later what is get or post? first check example for form

Example:


<html>
<head></head>
<body>
<form action="other_or_samepage.php" method="post">
Enter your text: <input type="text" name="txt" size="30">
<input type="submit" value="Send">
</form>
</body>
</html>

Action attribute is use to set where you want to post your data and method attribute specifies how data will passed.

No comments: