NYCPHP Meetup

NYPHP.org

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

Jerry Kapron nyphp at NewAgeWeb.com
Wed Apr 16 19:27:39 EDT 2003


Gorge,
> The only way I can see how to do this is something
>like the following PHP code:
>
><?php
>if ( $_SERVER['QUERY_STRING'] == '' )
> my_fail_handler();
>elseif ( $_SERVER['REQUEST_METHOD'] == 'POST )
> my_fail_handler();
>
>/* Else, continue normally... */
>?>

This wouldn't really help. The url will have a query string as is. When I
mentioned detecting a GET var reflecting the presence of the 'Submit'
button, it would be an additional GET var to the ones generated by the query
string.

Thanks for your help,
Jerry




More information about the talk mailing list