Hi,
I am having a problem with url parameters...
this is the line which should work but it doesnt...
<?php echo( "Welcome to our Web site, $name!" );?>
im passing name as a parameter but it doesnot find it or display it...
any body have any ideas?
thanks
[SOLVED] URL Parameters not working?
Moderator: General Moderators
-
mikeypengelly
- Forum Newbie
- Posts: 7
- Joined: Tue Jun 08, 2004 5:15 am
Code: Select all
<?php
// for example: thispage.php?word=abracadabra
$val = $_GETї'word'];
echo "the word is: $val";
?>The php defaults changed, in many cases you need to use $_GET
hope this helps.
Last edited by crabyars on Tue Jun 22, 2004 8:08 am, edited 1 time in total.
-
mikeypengelly
- Forum Newbie
- Posts: 7
- Joined: Tue Jun 08, 2004 5:15 am
thanks
Thanks..
Works with that..
Works with that..