Re: Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)
- From: "Blayde" <da.blayde@xxxxxxxxx>
- Date: 19 Jul 2006 11:44:48 -0700
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.
.
- References:
- Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)
- From: David T. Ashley
- Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)
- Prev by Date: Re: Open Source Forwarding/Groups system
- Next by Date: Re: Suggestion needed on data storage format in text file
- Previous by thread: Re: Must GET/POST Parameters Have Values? (And What is the Syntax for GET, If NOT)
- Next by thread: Suggestion needed on data storage format in text file
- Index(es):
Relevant Pages
|