Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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
  #1 (permalink)  
Old March 9th, 2005, 07:31 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default hide the values shown in querystring

I have a page called 'logincheck.asp'

If a condition is met then a response.redirect is carried out as per code below:

<%
if rscheck.eof then

response.redirect "/mackenzie/asp/reg.asp?agencyid="&agencyid&"&agentid="&agentid&"& username="&username&"&password="&password&""

end if
%>

How do I hide the values shown in the querystring in the address bar? This is due to the fact the password is shown. All my forms use POST. I thought POST did NOT show the values and GET DID??

Picco

www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
  #2 (permalink)  
Old March 9th, 2005, 08:19 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Picco,

response.redirect is not a form post

HTH,

Chris


  #3 (permalink)  
Old March 9th, 2005, 08:45 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

i understand that, but how do i hide the values shown in the querystring in the address bar

www.crmpicco.co.uk
www.milklemonadechocolate.uk.tt
  #4 (permalink)  
Old March 9th, 2005, 08:53 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

As you are specifying the values as a querystring, the only way you can hide this really is to place the whole site in a frameset, but that also hides urls etc.

Can you use cookies instead?

Cheers,

Chris

  #5 (permalink)  
Old March 9th, 2005, 12:38 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You write the values to hidden fields and auto post this to the new page. You can also use Server.Transfer (or Server.Execute< one keeps the form values I think). None of these are secure methods though, it just makes it a bit harder to see for casual snoopers.

--

Joe (Microsoft MVP - XML)
  #6 (permalink)  
Old March 10th, 2005, 10:10 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: Chennai, TamilNadu, India.
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Hi Check this link which encrpts the querystring...
http://www.dotnetjunkies.com/HowTo/9...75836DC72.dcik




Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide Field values in Gridview KamalRaturi ASP.NET 2.0 Professional 1 August 26th, 2006 11:39 PM
How to hide the values in query string Ramakrishna.G General .NET 8 May 8th, 2006 07:29 PM
Get querystring values canasdaq XSLT 9 April 5th, 2006 12:48 PM
hide the values shown in querystring in add bar crmpicco Classic ASP Basics 9 March 11th, 2005 02:04 AM
hide column in rnage where values found greg85374 Excel VBA 2 February 13th, 2005 10:08 AM





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