From: Larry on
Is there a way to know if the current page is a result of a get or
post?

From: Thomas 'PointedEars' Lahn on
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
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
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
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.)
 |  Next  |  Last
Pages: 1 2 3 4 5 6
Prev: triplet question.
Next: extend prototype chain?