Reply to Re: Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)

Your name:

Reply:


Posted by Blayde on 07/19/06 18:44

I've used like your first example (no equals signs) with no problems
many times. All one must do to see if it is there is:

isset($_GET['this'])

I use this to get different pages from the same php script
-Blayde

David T. Ashley wrote:
> Are GET and POST parameters required to have values, i.e. are either of
> these legal?
>
> http://www.mydomain.com/index.php?this&that
>
> http://www.mydomain.com/index.php?this=&that=
>
> In my application, I have a GET/POST parameter that is significant just by
> its presence (it doesn't need a value), and rather than say this=1&that=1 I
> was wondering if it is legal to specify them without values.
>
> Thanks, Dave.

[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

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