[nycphp-talk] <a href> vs. <form> request

George Webb gw.nyphp at
Wed Apr 16 18:58:21 EDT 2003

Hi Jerry.

	The only way I can see how to do this is something
like the following PHP code:

if ( $_SERVER['QUERY_STRING'] == '' )
elseif ( $_SERVER['REQUEST_METHOD'] == 'POST )

/* Else, continue normally... */

	This will only work if HREFs to your PHP script
don't already have query string arguments.  I.e.,

will work, but

all will be rejected, so I hope that's okay....  Make sense?

Best, George.

George Webb
gw.nyphp at

More information about the talk mailing list