PHP with HTML Variables

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
yonibensimon
Forum Newbie
Posts: 15
Joined: Thu Aug 07, 2003 10:24 am

PHP with HTML Variables

Post by yonibensimon »

I have a form managed with PHP. While I'm in PHP, how do i get access to my HTML variables ?

For example, in the form, users enter their info. When the submit, i control the rest with PHP(in a PHP file). But I need to print their info(they are in the html file)!

How do i do that ?
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

you're new to php, aren't you?

try picking up the oreilly book 1565926102

it'll help you quite a bit.

which method are you using?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

HTML is not a programming language, the values of a form can be accessed in PHP via $_POST or $_GET. Have a look at the sticky about passing values in the "PHP Normal" forum.
Post Reply