in a page i use this code
<input type="button" value="delete" onclick='location.href="delete.php?del_Lid_id=<?=$db_Lid_id;?>"'
I can see the infromation i want in the url.
http://blablablabla/test/delete.php?del_Lid_id=1
anybody got any idea how to get that number in variabel
i want to do something like this
<? echo "del_Lid_id"; ?>
This is pretty basic stuff!!!
? echo $del_Lid_id; ?>
that wont work
read the question please
<? echo $_GET['del_Lid_id']; ?>
reg kevin
I think only way is with associative array
if you set $acces["nomevar"]=a_value;
then with "list ($chi, $val) = each ($accessi)" you can access both to value and name.
<?=$chi?>=<?$val?>
But you need to build the array...
why would u need an associative array ??
all u need to do is this
Sorry I don't want to annoy nobody, but i'm writing when you post...
but i understand that him want echo the NAME of a variable, not the value....
isn't rigth?
well im not sure myself .. 😃 . i think he was trying to get the value but was using the older method echo $variable. but with the newer version of PHP i think it has to be echo $_GET['variable'];
i could be wrong about what the question was...
wow what a replies
kevin was right i wanted the variabel and not the name.
so in the example i gave it would be 1 because del_Lid_id was 1.
2 bad i cant check it now because i am not at home. i will check tommorrow if it works
thnx all
Charming response!
Explain your problem clearly[\B]. Your question is entitled 'get information from a URL'. Hmmm.
RTFM RTFM Holy Moley. Here... just read this. Specifically, information on that page about $GET. Gonna ask why you have to use $GET? It says so in the text, and directs you here. RTFM RTFM RTFM RTFM RTFM That should answer any questions you have about this. Once you are satisfied, make sure you mark this thread resolved (link at the bottom of the page).RTFM
BTW, this link should help you out in the future.
lol, www.php.net ... need i say more? 🙂