Currently, I am studying php7 by linking phpstorm and xampp. I tried following a simple example, but I checked that there was no problem with the sauce, but the NULL value keeps on going in.
What's wrong with this?
9_1.php
<form action="9_2.php" method="post">
<p>Name: <input type="text" name="name" /></p>
<p>Age: <input type="text" name="age" /></p>
<p><input type="submit" /></p>
</form>
9_2.php
<?phpechotml special chars ($_POST['name']); ?> Hello.
Are you <?phpecho(int)$_POST['age'; ?>Strong.
Hello, sir. You are 0 years old.
That's what it says. What's wrong with this?
php xampp phpstorm
var_dump($_REQUEST);
First, name it with this code and check if the age has been sent.
It will be printed in this format.
© 2024 OneMinuteCode. All rights reserved.