Jump to content

URGENT $_GET[""]


mike177

Recommended Posts

Hi, I am trubg to get the users email address out of the url.

 

When they log in they are refirected to the index.php page from there they can go to the profile from the folloing link, [email protected].

 

now when they land on the profile page I want to echo there email (just as an example).

 

I use just a simple echo $_GET['email']. But it's not working. any suggestions.

 

Thanks for any help in advance.

Link to comment
https://forums.phpfreaks.com/topic/91466-urgent-_get/
Share on other sites

index.php

<?php
$email = $_COOKIE['email'];
echo "[<a href=\"profile.php?email=$email\">My Profile</a>]"
?>

 

profile.php

<?php
echo $_GET['$email'];
?>

 

Thats all I have on the 2 pages. I no the cookies are set and working fine but when I try to get information from the url nothing happen's

Link to comment
https://forums.phpfreaks.com/topic/91466-urgent-_get/#findComment-468581
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.