for url
$url = http://www.whatever.com/index.php?variable1=value1&variable2=value2
define( 'unknownstring', 'fdasfdsafdsa' );
$secret = md5( "$variable1.'value1'.$variable2.'variable2'.$unknownstring" );
append this to the url
$new = $url.$secret;
then go to script page that processes for verification
$something = $HTTP_GET_VARS;
do foreach, taking the variable names and values out of the associative array
appending them together under variable name $query until loop is done
then do
$check = md5( "$query.$unknownstring" )
under a new variable name $query
check against each other
if( $new != $check )
print "you are bad, go away";
unfortunately, i have not been able to get the hash to match the other.
ive printed all the different combinations for the second hash that i could think of,
without the unknown string, with the unknown string, using $unknownstring = 'fdasfdsafdsa'; instead of define.
appending the unkownstring without the $ sign
i can never get the same hash value, though