Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 11th, 2007, 11:40 AM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default hide querystring's value

How do I hide a querystring's value which is came from the DB-Recordset.EX:

var=RS("VAR")

http://test.asp?userid="& var &"

I don't var show up, what should i do . thanks in advance.

 
Old January 11th, 2007, 11:45 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

It depends. You could place the userID in a hidden field on a form and do Request.Form to get the value or you could encrypt the querystring so that the value is just jumbled.

-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature
 
Old January 11th, 2007, 01:05 PM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried both. but doesn't work out. I will figure out.Thanks.

 
Old January 11th, 2007, 06:17 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You tried both? You can't "hide" querystring values. As dparsons said - you can use a hidden input element and post instead of a get to make it a little less visible, and you can encrypt it in either case. How do you mean "doesn't work out"?

Woody Z
http://www.learntoprogramnow.com
 
Old January 11th, 2007, 11:50 PM
Authorized User
 
Join Date: Jan 2007
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Finally works out. I hide it successfully after correct the mistyping issue(this one does cost me some time to find out). so now the url shows like: http://test.asp

<FORM name=myform action="test.asp">
<input type="hidden" name="username" value="&test&">
</form>

then use document.myform.submit()

Thanks a lot for your kindly suggestion

 
Old January 12th, 2007, 01:23 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by Magen
 Finally works out. I hide it successfully after correct the mistyping issue(this one does cost me some time to find out). so now the url shows like: http://test.asp

<FORM name=myform action="test.asp">
<input type="hidden" name="username" value="&test&">
</form>

then use document.myform.submit()

Thanks a lot for your kindly suggestion

Good work

Woody Z
http://www.learntoprogramnow.com
 
Old January 12th, 2007, 04:43 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

Hi Magen,
You also can assign to a seesion variable, and then next page you can request the value from session variable.

surendran
(Anything is Possible)
http://ssuren.spaces.msn.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
HIDE/SHOW pallone Javascript How-To 11 April 16th, 2007 10:24 AM
IF recordset value =something then HIDE? waynelambright ASP.NET 1.0 and 1.1 Basics 5 October 30th, 2006 01:53 PM
Hide 0 value in a Report Asif2005 Classic ASP Basics 1 March 7th, 2005 06:21 PM
Hide the file name want2learn Classic ASP Basics 1 May 22nd, 2004 11:57 PM
Hide Link fs22 Javascript 2 April 27th, 2004 05:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.