Page 1 of 1

help with $_GET

Posted: Tue Dec 09, 2008 1:55 am
by kryppienation
Howdy!

I have a question about $_GET.

I have the following code in my page:

Code: Select all

echo '<tr><td colspan="100%" align="center"><font color="red">'.$deletedmsg.'</font></td></tr>';
echo '<tr><td>From:</td><td>Message:</td><td align="right"><font size="2">[color=#0000FF]<a href="residence.php?action=deleteall&faid='.$id.'">Delete All</a>[/color]</font></td></tr>';

When a user click the link it does with it's supposed to do, my question however, is there a way to replace the $id with encryption.

Once clicked I get this in my browser:

http://localhost/kryppienation/home/res ... eall&faid=2

I would really like the number there to be so others cannot see the actual value.

Re: help with $_GET

Posted: Tue Dec 09, 2008 2:42 am
by deejay
you could use $_POST instead.

Re: help with $_GET

Posted: Tue Dec 09, 2008 3:06 am
by kryppienation
I figured out a way to do it using the base64_encode();

Topic solved.