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:
Post a Comment