I trying to create a PHP file, called action.php, which receives the first and last name sent by a HTML form using GET. I need to make it display the names 10 times (on 10 different lines) using the while loop. How could i write this? All my attempts failed.
Can anyone please help?
I forgot to add, sorry: (
<body>
<?php
$lname=1;
$fname=1;
while ($lname<=10; $fname<=10; $fname++)
Your first name is: <?php echo $_GET["fname"]; ?><br/>
Your last name is: <?php echo $_GET["lname"]; ?><br/>
?>
</body>
I forgot to add, sorry: (
<body>
<?php
$lname=1;
$fname=1;
while ($lname<=10; $fname<=10; $fname++)
Your first name is: <?php echo $_GET["fname"]; ?><br/>
Your last name is: <?php echo $_GET["lname"]; ?><br/>
?>
</body>