“Obtenha pós php” Respostas de código

Post PHP

<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'];
}
?>
Andrew Lautenbach

Obtenha pós php

<?php
var = $_POST['var'];
echo var;
  
// YOUR METHOD IN HTML MUST BE IN POST

<form method="post">
	<input type="text" name="var">  
</form>
L'homme habile

Obtenha postagem no PHP

$data = json_decode(file_get_contents('php://input'), true);

// you have all in an array
L'homme habile

Respostas semelhantes a “Obtenha pós php”

Perguntas semelhantes a “Obtenha pós php”

Mais respostas relacionadas para “Obtenha pós php” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código