0

Why isn't php working on my phone? I've tried creating a basic form but I don't retrieve any data. Why?

I've tried using get and post neither is working

4th Jun 2020, 9:09 AM
Amara
Amara - avatar
2 Respuestas
+ 2
Show your code so that we can help you.
4th Jun 2020, 9:52 AM
Souptik Nath
Souptik Nath - avatar
0
<html> <head> <title> Form </title> </head> <body> <form action="myPhp.php" method="get"> <p>Name: <input type="text" name="name" /></p> <p>Age: <input type="text" name="age" /></p> <p><input type="submit" name="submit" value="Submit" /></p> </form> </body> </html> <!DOCTYPE html> <?php if (isset($_GET['form_submitted'])): ?> <h2>Thank You <?php echo $_GET['name']; ?> </h2> <p>You have been registered as <?php echo $_GET['name'] . ' ' . $_GET['age']; ?> </p> Welcome <?php echo $_GET["name"]; ?><br /> Your age: <?php echo $_GET["age"]; ?>
4th Jun 2020, 5:35 PM
Amara
Amara - avatar