1
When filling out an HTML form, I put it to appear in PHP on the other page. But when filling the form is called the other page and the values are only in the URL and the "echo" is not shown on the page. Below is the code I used in HTML and PHP
<form method="get" action="p1.php">
Valor <input type="number" name="ds"/>
<input type="submit" value="Envie"/>
</form>
<?php
$valor = $_GET["ds"];
echo "O valor inserido é $valor";
?>
That’s all you have in your code ?
– Diego Souza
Yeah, that’s right, that’s right.
– Danilo Massoni
This P1.php page is the same as the one you put in this code?
– Ivan Ferrer