Free File Hosting - Discount Magazines - 0 Credit Cards - Loan - Healthy Living

PDA

View Full Version : $_GET Function


Jook
Mar 21st 2008, 2:15 pm
Hey guys,

I want to post from vars from a URL but not sure how to pass them onto the page.

Basicly I want to from another URL with the vars in my URL for example, www.example.com/?id=[GET VARS]

rmiller
Mar 21st 2008, 6:44 pm
If I understand you correctly, then you're on the right track with using the $_GET function. It would look something like this, assuming your URL is www.example.com/?id=1

<?
$var = $_GET['id']; //var now equals '1'
?>