Prev: triplet question.
Next: extend prototype chain?
From: Larry on 25 Jan 2010 05:09 Is there a way to know if the current page is a result of a get or post?
From: Thomas 'PointedEars' Lahn on 25 Jan 2010 06:13 Larry wrote: > Is there a way to know if the current page is a result of a get or > post? Yes. PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)
From: The Natural Philosopher on 25 Jan 2010 06:35 Thomas 'PointedEars' Lahn wrote: > Larry wrote: > >> Is there a way to know if the current page is a result of a get or >> post? > > Yes. > and of course, no. Depending on where you are looking at the 'current page' :-) > > PointedEars
From: Scott Sauyet on 25 Jan 2010 06:36 On Jan 25, 6:13 am, Thomas 'PointedEars' Lahn <PointedE...(a)web.de> wrote: >> Is there a way to know if the current page is a result of a get or >> post? > > Yes. No. At least, assuming you're discussing doing this from Javascript in a web browser. For any POST you perform, the server could send a redirect to a GET. If you have control on the server-side, you could echo the request type into a JS variable; in PHP it might be var httpMethod = "<?php echo $_SERVER['REQUEST_METHOD']; ?>" Good luck, -- Scott
From: Thomas 'PointedEars' Lahn on 25 Jan 2010 07:24
Scott Sauyet wrote: > Thomas 'PointedEars' Lahn wrote: >>> Is there a way to know if the current page is a result of a get or >>> post? >> Yes. ^^^^ > No. > > At least, assuming you're discussing doing this from Javascript in a > web browser. For any POST you perform, the server could send a > redirect to a GET. > > If you have control on the server-side, you could echo the request > type into a JS variable; in PHP it might be > > var httpMethod = "<?php echo $_SERVER['REQUEST_METHOD']; ?>" See, there is a way :) PointedEars -- Use any version of Microsoft Frontpage to create your site. (This won't prevent people from viewing your source, but no one will want to steal it.) -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.) |