Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Hiding Query Strings
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Hiding Query Strings

 Post Reply Post Reply
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Topic: Hiding Query Strings
    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?
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Lofty View Drop Down
Newbie
Newbie
Avatar

Joined: 03 April 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lofty Quote  Post ReplyReply Direct Link To This Post Posted: 15 April 2005 at 3:50pm
you cant use post instead of get for the form method?
Back to Top
bootcom View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 February 2005
Location: United Kingdom
Status: Offline
Points: 259
Post Options Post Options   Thanks (0) Thanks(0)   Quote bootcom Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.