How to hide variables from forms?

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
tempuramaki
Forum Newbie
Posts: 2
Joined: Mon Oct 20, 2003 11:30 pm

How to hide variables from forms?

Post by tempuramaki »

Hi, first post here. :D

I've just started with php and i need to hide the variables from forms in the URL. I really don't want it to show. Is there anyway to do this?

A simple example will be great!

Thanks.
murph
Forum Commoner
Posts: 29
Joined: Fri Oct 03, 2003 1:28 pm
Location: washington

Post by murph »

You can use POST instead of GET. Then when you get the variable its $_POST['var name'];
tempuramaki
Forum Newbie
Posts: 2
Joined: Mon Oct 20, 2003 11:30 pm

Post by tempuramaki »

Wow, its that simple! :oops:

Thanks a bunch!
Post Reply