Newbie to PHP Form Help

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
User avatar
sroussie
Forum Newbie
Posts: 19
Joined: Wed Aug 27, 2003 12:26 pm
Location: Buffalo, NY

Newbie to PHP Form Help

Post by sroussie »

Hi,

I just started doing some basic coding in PHP. I have been trying to find a good tutorial or book that shows me how to process information from forms. My form includes text boxes, textarea, drop down selection boxes, etc. All the normal things found on a form. I've been on a lot of pages and have found info on getting text but not the others. I just need to send all the data to an email address for now.

Thanks ahead of time for any help.

Sue
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

you have to set the 'name' property for each element(textboxes, checkboxes, etc) that you have, if you set the method of the form to 'get' when u can read the results by using the variable $_GET['thenameoftheelement'] or if you set method to POST then it will be $_POST['nameoftheelement'], by the way, what php version u have?
User avatar
sroussie
Forum Newbie
Posts: 19
Joined: Wed Aug 27, 2003 12:26 pm
Location: Buffalo, NY

Post by sroussie »

Hi,

I have no idea what is on the web host. I will have to find out.

Thanks.
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

in a php file, write this to see what PHP Version u have:

Code: Select all

<?php
phpinfo();
?>
User avatar
sroussie
Forum Newbie
Posts: 19
Joined: Wed Aug 27, 2003 12:26 pm
Location: Buffalo, NY

Post by sroussie »

PHP Version 4.3.2
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

the it's ok, the code i gave you should work perfectly, if u understood it of course, and by the way, check that the directive register_globals is off :) that will increase the security in your applications :)
User avatar
sroussie
Forum Newbie
Posts: 19
Joined: Wed Aug 27, 2003 12:26 pm
Location: Buffalo, NY

Post by sroussie »

Thanks, I'll give it a shot and see what happens.
Post Reply