Page 1 of 1

URL Parameters not working?

Posted: Tue Jun 22, 2004 8:04 am
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

Posted: Tue Jun 22, 2004 8:07 am
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.

thanks

Posted: Tue Jun 22, 2004 8:10 am
by mikeypengelly
Thanks..

Works with that..