Reply to Re: [PHP] Product details not being displayed, based on passed id

Your name:

Reply:


Posted by John Nichel on 04/28/05 16:28

Mark Sargent wrote:
<big snip>
> Hi All,
>
> ok, so let me understand this. To be able to use GET/POST and some
> others, I need this turned on, yes..? Do you all have it set to on..? If
> no, how do you get around this..? Cheers.

No. With globals off, php just doesn't _magically_ transform
mydomain.com/script.php?foo=bar into a variable named $foo with a value
of bar. The data is still there.

For something passed in the query (URL) string, use the $_GET array...

$_GET['foo']

For something passed by a form with the post method, use the $_POST array...

$_POST['foo']

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация