Good day,
I have a very simple script:
<?php
$first=$_POST['first'];
echo "$first";
?>
I want a the user to be able to type something into the url bar say www.test.com/test.php?first=aa;
then echo aa.
How is this possible?
Good day,
I have a very simple script:
<?php
$first=$_POST['first'];
echo "$first";
?>
I want a the user to be able to type something into the url bar say www.test.com/test.php?first=aa;
then echo aa.
How is this possible?
Change
$first=$_POST['first'];
to
$first=$_GET['first'];
OR
$first=$_REQUEST['first'];
Use GET instead of POST
$_GET["first"]
echo "$first"; with echo htmlspecialchars("$first");