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



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.

.



Relevant Pages

  • Re: RSC on ultra 60
    ... The system can be configured to do an automatic shutdown ... To specify continuous operation, the finish_time may ... If the hardware has the capability to do autowakeup, ... next time the time of day equals finish_time. ...
    (comp.unix.solaris)
  • Re: Partial derivative of single variable function?
    ... Is it true that the partial derivative of fequals f'? ... you must specify with respect to what ... Not if your gradient is the vector operator "del". ...
    (sci.math)
  • Re: Partial derivative of single variable function?
    ... Is it true that the partial derivative of fequals f'? ... you must specify with respect to what ... Not if your gradient is the vector operator "del". ...
    (sci.math)
  • Re: SMTP cannibalization Twilight Zone
    ... SMTP does not specify a message format. ... after any equals sign get "eaten up." ... It sounds like you are creating a MIME message and specifying the ...
    (comp.programming)
  • Re: Help in < or > mathematical excel equations
    ... I know that the problem originates in the OP's description because he does ... not specify what should happen if K2=1. ... and the crowning place of kings ... less then 0.99 then H2 equals 0.20 ...
    (microsoft.public.excel.misc)