Page 1 of 1
function for variable in url
Posted: Sun Nov 12, 2006 5:05 pm
by JosiaMFire22
Hey, I was wondering if anyone could tell me the name of the function that allows you to have like a variable on the end or ur url (eg.
http://www.domainhere.com/profile.php?id=JosiaMFire2) - variable would be "JosiaMFire2".
Posted: Sun Nov 12, 2006 5:09 pm
by jayshields
It's not a function, it's the
GET superglobal array.
Posted: Sun Nov 12, 2006 5:10 pm
by JosiaMFire22
kk, thanks heaps, im still a newb

Re: function for variable in url
Posted: Mon Nov 13, 2006 12:56 am
by RobertGonzalez
Code: Select all
<?php
$id = $_GET['id'];
// For a little cleaner approach
$id = isset($_GET['id']) ? $_GET['id'] : '';
?>