I have an array of ids and an array of corresponding values on a form. The user chooses the value on the screen but I am using GET on my form to get the ids. The problem is I need to convert the key back into the value on the second php page, except that the GET function did not send the value along with the id. I do not want to send the value over the url and I do not wish to change the URL as it is now (or, by extension, change from GET to POST to hide the value).
Basically, what is the best way to make this conversion on the second php page having only sent the key over the url and not having the array as a variable on the second page? I read something about super globals but I was not sure if that was the right way to go.
Any help would be appreciated. Thanks.
well, if you don’t want to send the value over the URL, then you could do an AJAX request to a PHP script and save the value in $_SESSION