Hello all, I have a custom encrypted query which reads like this ... http://localhost/index.php?dhfgzdjf...nbvcxpoiuyhgfdslkjhggfdsahgfdshgfdskjhgfkjhgf My encryption / decryption translator is already covered. How do I ... 1) grab everything after the question mark 2) create variable values from the (decrypted) string for use in my php doc? I've been having trouble finding any information on this. Thanks in advance.
You should just be able to do something like: $the_encrypted_query = $_SERVER[ 'QUERY_STRING' ]; and use it as normal. Just remember, there is a limit to the length of allowable query strings. Unfortunately this limit changes depending on the client and the server.
Thanks Twist, Using $_SERVER[ 'QUERY_STRING' ] did exactly as you said it would. If I call my decryption function ... $some_variable = decrypt($_SERVER['QUERY_STRING']); ... how do I get the resulting variables to be used out of the $some_variable product?
My query looks something like this ... display=audio&track=trunkfullofpunkfunk&bandwidth=hiband&validate=2358966996708 Actually, scratch that, the resulting STRING looks like that. Now that I have a string, how do I convert it into a series of variable values?
you will have to cut it , you can use the split() function or preg_split() http://www.php.net/manual/en/function.preg-split.php