[PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Lord Loh.
http://myadress/php/mypage.php?modo=123&color=red&size=3 and to get echo $_GET['modo'].""; echo $saci_color.""; echo $saci_size.""; === Tested it! It worked! G stands for GET You can use P or C for POST or COOKIE The order of gpc is important the later overwites the former

[PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Martin Clifford
Because you HAVE to use it if you have register_globals OFF. Only when register_globals is ON can you do what you thought is more efficient, but isn't. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Lord Loh." <[EMAIL PRO

[PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Saci
Besides my newbye status, I guess you are not update. the $_GET is a must have when you use set globals to off, ( this is default after 4.2.1), and must be maintained for security reasons. Since I'm newbye I play with new and fresh version, and I can get details that older "phpers" does not tak

Re: [PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Saci
The obvius and easy think is alwaiss the hard to find My problem vas the > of the tag, that I forgot, dummy issue but I made The right adn working one now are http://myadress/php/mypage.php?modo=123&color=red&size=3 and to get echo $_GET['modo'].""; echo $_GET['color'].""; echo $_GET['size']

Re: [PHP] Re: passing variable via url ( newbye question)

2002-07-30 Thread Leif K-Brooks
PLEASE don't tell the newbies to mess up their code! That is not compatible with all versions of php! DO NOT USE THOSE!!! STICK TO YOUR CURRENT GOOD CODE! Bother with them for security and compatibly. Lord Loh. wrote: >http://myadress/php/mypage.php?modo=123&color=red&size=3 > >is fine! >

[PHP] Re: passing variable via url ( newbye question)

2002-07-30 Thread Lord Loh.
http://myadress/php/mypage.php?modo=123&color=red&size=3 is fine! you can now use these variables like $modo $color and $size; Why bother with $_GET['modo']; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php