Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php post

<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
  Name: <input type="text" name="fname">
  <input type="submit">
</form>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
  // do logic
  $name = $_POST['fname'];
}
?>
 
PREVIOUS NEXT
Tagged: #php #post
ADD COMMENT
Topic
Name
4+9 =