Forum Moderators: coopster
I have a page on my site that has a form for people to include their name and e-mail that I need to send to another site to save to a database.
The receiving/action page will then give a response depending on the point of failure or if the send and storage was successful.
Seems simple enough, but I need to include a use an id and password with the information for the third party to accept the info.
I can't include these as hidden form fields, as you could see them in the source.
I can post the inputted variables to a second page and add the sensitive variables before using the header function in php to call up the third party site, but I can only use query string from there to pass the variables over, which will of course expose the details I was trying to hide.
The info has to be passed, there's no db option. Other people have supposedly written functions that POST the info on from the second page so it's not part of the query string, which would be an acceptable solution, but I can't seem to figure out how to do that.
The ideal would be for the php page to send the users info & the sensitive info to the server, wait for the response, interpret it and write to the page the result.
Any takers?
Thanks
You need to first encrypt the arguments before sending them to the querystring.
$lp = $HTTP_POST_VARS['login_password'];
$salt = substr(crypt($login_password), 0,2);
$up = crypt($login_password, $salt);
Then grab the vars from the querystring and uncrypt them (using the $salt) then use them.
Simple, eh?
Hope this works!
You need to first encrypt the arguments before sending them to the querystring.
$lp = $HTTP_POST_VARS['lp'];
$salt = substr(crypt($lp ), 0,2);
$up = crypt($lp, $salt);
Then grab the vars from the querystring and uncrypt them (using the $salt) then use them.
Simple, eh?
Hope this works!