Variables on 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
Caped Knight
Forum Commoner
Posts: 33
Joined: Wed Jan 01, 2003 6:20 pm
Location: Somewhere...out there...

Variables on Forms

Post by Caped Knight »

Small question: when I'm transferring data via get/post over a form does the "name='name'" attribute (within the form) automatically get turned to the variable '$name' in the action page or do I need to type '$_POST["name"] = $name'?

Thanks.
toms100
Forum Contributor
Posts: 119
Joined: Wed Feb 26, 2003 10:29 am
Location: Bristol,UK

Post by toms100 »

it depends if you have register_globals on, although either way i suggest you refer to the variables as $_POST['variable'] as it is alot more secure
Post Reply