help with $_GET

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kryppienation
Forum Newbie
Posts: 9
Joined: Thu Dec 04, 2008 1:12 am

help with $_GET

Post 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.
User avatar
deejay
Forum Contributor
Posts: 201
Joined: Wed Jan 22, 2003 3:33 am
Location: Cornwall

Re: help with $_GET

Post by deejay »

you could use $_POST instead.
kryppienation
Forum Newbie
Posts: 9
Joined: Thu Dec 04, 2008 1:12 am

Re: help with $_GET

Post by kryppienation »

I figured out a way to do it using the base64_encode();

Topic solved.
Post Reply