mukunthan Posted October 15, 2008 Share Posted October 15, 2008 How to send sensitive info from one page to another using hidden form field without the field getting displayed in the HTML viewsource?Is it possible? I know we can encrypt the value but i also dont want the field name to be visible? eg., <form name="frm" action="1.php"> <input type="hidden" name="user_id" value="100"> <input type="text" name="product" > <input type="text" name="qty" > <input type="submit" name="Submit" > </form> The user_id hidden should not be visible even if a view the HTML Source Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/ Share on other sites More sharing options...
Lamez Posted October 15, 2008 Share Posted October 15, 2008 Session Variables! Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665814 Share on other sites More sharing options...
grim1208 Posted October 15, 2008 Share Posted October 15, 2008 GOOD ANSWER case closed, problem solved, don't forget to mark it !! Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665815 Share on other sites More sharing options...
mukunthan Posted October 15, 2008 Author Share Posted October 15, 2008 Thanx Guys, But is there any other way? I cant use session variables for certain reasons Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665821 Share on other sites More sharing options...
Lamez Posted October 15, 2008 Share Posted October 15, 2008 databases, can you gives the reason why you cannot use session variables? Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665825 Share on other sites More sharing options...
mukunthan Posted October 15, 2008 Author Share Posted October 15, 2008 This val is used to link 2 websites.After you login to 1site, important info are passed from the 1st site to the 2nd.Only if these info are present the 2nd site gives access to all the pages. otherwise the session controlled pages will be missing Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665842 Share on other sites More sharing options...
CroNiX Posted October 15, 2008 Share Posted October 15, 2008 What I have done before in a nutshell: Both databases (on each server) have a simple salt table with id and value and the tables are identical. Before you send data from one site to the other, encrypt it with a randomly selected salt. Send the id of the salt along with the encrypted data and decrypt it on the other end by retrieving the salt value. Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665869 Share on other sites More sharing options...
Lamez Posted October 15, 2008 Share Posted October 15, 2008 Everything is better with salt! Quote Link to comment https://forums.phpfreaks.com/topic/128474-how-to-send-sensitive-info-from-one-page-to-another/#findComment-665873 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.