Print Page | Close Window

Hiding Query Strings

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=14707
Printed Date: 30 March 2026 at 6:38am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Hiding Query Strings
Posted By: Misty
Subject: Hiding Query Strings
Date Posted: 15 April 2005 at 3:00pm
I have a table where people choose a title from. It takes them to a form to fill out. The next web page uses a querystring such as form.asp?qryID=1. I must have the querystring. I would like for it to be just form.asp. How can I hide the querystring?



Replies:
Posted By: michael
Date Posted: 15 April 2005 at 3:05pm
I think the only way to fake-hide it, is by using frames or URL masking which can cause other problems. You can ecrypt it though if you don't want people to alter it.

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Lofty
Date Posted: 15 April 2005 at 3:50pm
you cant use post instead of get for the form method?


Posted By: bootcom
Date Posted: 15 April 2005 at 3:56pm
Or if you *had* to have it with no querystring AND you couldn't URL mask it and you didnt want to put everything into frames. The only solution would be to make the links in your tables form values themselves and when they click the link it goes through to form.asp from which you can retrieve the value by doing a request form.
 
It's a pain in the Censored way of course, but it achieves what you need it to.
 
Heres some sample code for you too Smile
 
Place this in the head tag:
 

 
function useMeInsteadOfQueryString(frmValue){
document.frmName.frmHidden.value = frmValue
document.frmName.Submit()
}
 
 
Then before u write the table:
 

<form name="frmName" method="post" action="form.asp">
<input type="hidden" name="frmHidden">
</form>
 
Then the links in the table would be:
 

<a href="javascript:useMeInsteadOfQueryString('1')">My Link</a>
 
Does what you want if everything else is unavailable to you Smile
 
Hope that helps
 
Chris



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net