Learn how to a build a cloud-first strategyRegister Now


GET Query String

Posted on 2006-05-09
Medium Priority
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="http://www.mydomain.com/receive.php?email='abc@abc.com'">Click here to send</a>

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

Assisted Solution

Roonaan earned 600 total points
ID: 16638092
Try removing the single quotes. Although that might not be the problem.

You can debug by using

LVL 40

Accepted Solution

Richard Quadling earned 800 total points
ID: 16638170
Hi skylabel,

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


Richard Quadling.
LVL 19

Assisted Solution

Michael701 earned 600 total points
ID: 16640739
you must also urlencode( ) the email address, @ is not allowed in url data

LVL 40

Expert Comment

by:Richard Quadling
ID: 16732524
1 line and SO many errors! Doesn't bode well does it!

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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
The viewer will learn how to dynamically set the form action using jQuery.
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 …
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

810 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