Answers for "doreact for $_POST in php"

PHP
2

var_dump _post php

<?php print_r($_POST); ?>
Posted by: Guest on April-12-2020
8

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'];
}
?>
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language