I have link as test.php?fullname=Fahim&emailid=test@test.com
In test.php I have below
$fullname = $_POST['fullname'];
$emailid = $_POST['emailid'];
echo "$fullname===$emailid===";
I always get response as ======
I was expecting as Fahim===test@test.com
.
Any idea why this is happening?
In test.php data will be recieved using $_GET cause you are sending data using URL
Your link
test.php?fullname=Fahim&emailid=test@test.com
Output
You have to use
$_GET['param_name']
to retrive values sending via url.When you pass parameters from the url, it is a get request..
In PHP, we use
$_GET
for fetching information from get request