GET Query String

Posted on 2006-05-09
Last Modified: 2008-03-17
I don't get what I've done wrong here...I'm trying to pass a variable from send.html to receive.php using query strings. Here;s my code

<a href="''">Click here to send</a>

echo "HI ".$email;
Why is $email not being displayed?
Question by:skylabel
    LVL 49

    Assisted Solution

    Try removing the single quotes. Although that might not be the problem.

    You can debug by using

    LVL 40

    Accepted Solution

    Hi skylabel,

    You've missed the _ in $_GET. You have $GET.


    Richard Quadling.
    LVL 19

    Assisted Solution

    you must also urlencode( ) the email address, @ is not allowed in url data

    LVL 40

    Expert Comment

    1 line and SO many errors! Doesn't bode well does it!

    My crappy weekend is spilling out onto the net! Oh joy!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    This is a general how to create your own custom plugin system for your PHP application that you designed (or wish to extend a third party program to have plugin functionality that doesn't have it yet).  This is not how to make plugins for existing s…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now