1
I have a FORM that should send the user ID to PHP, but PHP receives null.
HTML:
(the <?=$individuo["ID"]
is returning id correctly)
<form name="alterar" action="alterar.php" method="POST">
input type="text" name="id" value=<?=$individuo["ID"]?>>
<input type="submit" name="Editar" value="editar">
</form>
PHP:
<?php
var_dump($_POST["ID"]);
?>
puts in quotes, and is missing a < in the input
– CypherPotato
@Cypherpotato Just commenting: the quotes there is optional. For HTML
value=1
is perfectly valid. You can read more on In HTML and CSS should I use Single Quotes or Double Quotes? Is there any recommendation?– Woss