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, pofile.php?email=master@hotmail.com.

 

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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.