<form action="viewpage.php?page_id=2.php" method="post">
First name: <input type="text" name="firstname" /><br />
Last name: <input type="text" name="lastname" /><br />
<input type="submit" value="Test" />
</form>
<?php
echo $_POST['firstname'] . ' ' . $_POST['lastname'];
?>
stripinput($_POST['firstname'])
stripinput($_POST['lastname'])
<?php
if (isset($_POST['submit'])) {
echo "Your action was submitted<br />";
echo "Input was: ".$_POST['name'];
} else {
echo "Input and submit. ;)";
}
echo "<form name='form_name' id='form_id' method='post' action='viewpage.php?page_id=2' enctype='multipart/form-data'>\n";
echo "<input type='text' name='name'>\n";
echo "<input type='submit' name='submit'>\n";
echo "</form>";
?>
Category Forum
Content Administration - 8Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions