...

View Full Version : Pass Variables



sasha85
09-29-2007, 09:18 PM
for example on the first page
i got


dim a
a = abcd1234

<form action=page2.asp method=post ENCTYPE="multipart/form-data" ...>
...
</form>

on the page2.asp
how can i catch the value of a
-i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form
request.querystring
request.form
request.upload
not working
it's a simple question for people that know well ASP:)

nikkiH
10-01-2007, 03:22 PM
i do not want to use get\response.redirect\session\Server.Transfer\hidden value in the form


The web is stateless. Something to indicate a key/value pair will always be passed somewhere in the request, whether it's the key or both the key and the value.

Spudhead
10-01-2007, 03:40 PM
Cookies?

Daemonspyre
10-02-2007, 02:28 PM
Nikki is right, as the web cannot keep this information for you without you telling the server to keep it.

If you want to do this without passing variables, then you need to consider changing how you are authenticating your users.

nikkiH
10-02-2007, 03:37 PM
Iframes or cookies would be a hack, and not a Good Thing.

It is always in the best interests of security to keep server-side things on the server. Things that the client never needs but that you may want to re-use are exactly what the session is for. As long as you don't kill the server with a ton of stuff in sessions, they perform well and do what they were meant to do.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum