469,353 Members | 2,113 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,353 developers. It's quick & easy.

sending data between pages

How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>

Thanks.

Jul 19 '05 #1
3 1679
you might check the referer.
Request.ServerVariables("HTTP_REFERER")

"bender online.no>" <laasunde@<remove> wrote in message
news:#0**************@TK2MSFTNGP09.phx.gbl...
How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
file://code...
<input type="submit" value="Ok">
</form>

Thanks.

Jul 19 '05 #2
> How can I through asp figure out if a page is opend through a regular link
or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>


Something like this might work (if you give your submit input tag a
name=submit)...

if request.form("submit").count > 0 then
'it was submitted via a form post
else
'it was not
end if
Jul 19 '05 #3
Thank you :)

"Randy Rahbar" <rvrahbarAThotmail.com> wrote in message
news:uE**************@TK2MSFTNGP12.phx.gbl...
How can I through asp figure out if a page is opend through a regular link or from form post method like this :

<form action="something.asp" method=post>
//code...
<input type="submit" value="Ok">
</form>


Something like this might work (if you give your submit input tag a
name=submit)...

if request.form("submit").count > 0 then
'it was submitted via a form post
else
'it was not
end if

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Jochen Daum | last post: by
1 post views Thread by coder_1024 | last post: by
5 posts views Thread by Naveen Mukkelli | last post: by
7 posts views Thread by tshad | last post: by
1 post views Thread by Ugur Ekinci | last post: by
9 posts views Thread by Miro | last post: by
5 posts views Thread by hurricane_number_one | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.