[SOLVED] URL Parameters not working?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mikeypengelly
Forum Newbie
Posts: 7
Joined: Tue Jun 08, 2004 5:15 am

URL Parameters not working?

Post by mikeypengelly »

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
crabyars
Forum Commoner
Posts: 37
Joined: Thu Jun 17, 2004 8:24 pm

Post by crabyars »

Code: Select all

<?php 
// for example: thispage.php?word=abracadabra 

$val = $_GET&#1111;'word']; 
echo "the word is: $val"; 

?>
from my php snippets site.

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

Post by mikeypengelly »

Thanks..

Works with that..
Post Reply