Click here to Skip to main content
14,542,473 members
Rate this:
Please Sign up or sign in to vote.
See more:
How to pass and get values one HTML page to Another HTML page...I m trying Query string,but not secured., how to secure..?

What I have tried:

I m trying Query string...but not secured....plz help
Posted
Updated 8-Feb-20 12:23pm
Rate this:
Please Sign up or sign in to vote.

Solution 2

You have to POST rather than get so you need to do a form submission of some kind, maybe via javascript (google "submit form javascript") and you can put the data you want to pass to the other html page in hidden fields (google "update hidden field javascript").

Note that it still isn't "secure", however the data is harder to manipulate as it isn't on the url, but it can still be manipulated if someone knows what they are doing. There really isn't any way to properly secure transmissions like this, the protocols you are using are not secure protocols.
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

In addition to the above answers,
you shall use client storage[^] to store the data in the browser window and use it to Get/Set data across different pages. however its is not safe if the user is smart enough to dig the values from browser.

refer these
Send (Pass) Data (Values) from one page to another using Cookies [^]
9 JavaScript Libraries for Working with Local Storage[^]
   
Rate this:
Please Sign up or sign in to vote.

Solution 1

You can use form post method and if you do not want to display info use hidden field .Put destination page name in form's action attribute.
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100