Click here to Skip to main content
15,886,823 members
Please Sign up or sign in to vote.
1.00/5 (1 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

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.
 
Share this answer
 
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[^]
 
Share this answer
 
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.
 
Share this answer
 
v2

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900