Re: [PHP] Parameters via Link
Still doesnt' work, any ither suggestions? Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) if ($link == home); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Trespassers will be shot. Survivors will be SHOT AGAIN! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parameters via Link
On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote: Still doesnt' work, any ither suggestions? Sounds like you don't have register_globals turned on. (Don't turn it on! globals are eevviill! ;) Try: if ($_REQUEST['link'] == 'home') { . . . } Or, if using an older (pre-4.1.0) version of PHP, try: if ($HTTP_GET_VARS['link'] == 'home') { . . . } Hope this helps, Torben Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) if ($link == home); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Trespassers will be shot. Survivors will be SHOT AGAIN! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parameters via Link
I have PHP Version 4.0.5 and register_globals turned on but it doesnt' work =( Lars Torben Wilson [EMAIL PROTECTED] schrieb im Newsbeitrag 1013298469.9790.13.camel@ali">news:1013298469.9790.13.camel@ali... On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote: Still doesnt' work, any ither suggestions? Sounds like you don't have register_globals turned on. (Don't turn it on! globals are eevviill! ;) Try: if ($_REQUEST['link'] == 'home') { . . . } Or, if using an older (pre-4.1.0) version of PHP, try: if ($HTTP_GET_VARS['link'] == 'home') { . . . } Hope this helps, Torben Jason Wong [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]... On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) if ($link == home); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Trespassers will be shot. Survivors will be SHOT AGAIN! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parameters via Link
On Sat, 2002-02-09 at 15:54, Manuel Ritsch wrote: I have PHP Version 4.0.5 and register_globals turned on but it doesnt' work =( Is it inside a function? If not, can you send me a copy of the script? Torben Lars Torben Wilson [EMAIL PROTECTED] schrieb im Newsbeitrag 1013298469.9790.13.camel@ali">news:1013298469.9790.13.camel@ali... On Sat, 2002-02-09 at 15:39, Manuel Ritsch wrote: Still doesnt' work, any ither suggestions? Sounds like you don't have register_globals turned on. (Don't turn it on! globals are eevviill! ;) Try: if ($_REQUEST['link'] == 'home') { . . . } Or, if using an older (pre-4.1.0) version of PHP, try: if ($HTTP_GET_VARS['link'] == 'home') { . . . } Hope this helps, Torben -- Torben Wilson [EMAIL PROTECTED] http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parameters via Link
try: if( ! strcmp($link, home) ) { include(soundmp3.php); } -Original Message- From: Manuel Ritsch [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Parameters via Link Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) { include'soundmp3.php'; } but it doesn't work (i don't get an error, the content of soundmp3.php just doesn't shows up). Any Help is Welcome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Parameters via Link
On Saturday 09 February 2002 02:23, Manuel Ritsch wrote: Hey there I want to make a webpage out of one main pagewith php, if you press on a link i want that it changes the content of the page, but it doesn't seem to work, i tried it like this... link: a href=index.php?link=home php code: if($link == home) if ($link == home); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Trespassers will be shot. Survivors will be SHOT AGAIN! */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php