Page 1 of 1

Newbie to PHP Form Help

Posted: Wed Sep 24, 2003 2:26 pm
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

Posted: Wed Sep 24, 2003 2:34 pm
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?

Posted: Wed Sep 24, 2003 2:42 pm
by sroussie
Hi,

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

Thanks.

Posted: Wed Sep 24, 2003 2:55 pm
by Cruzado_Mainfrm
in a php file, write this to see what PHP Version u have:

Code: Select all

<?php
phpinfo();
?>

Posted: Wed Sep 24, 2003 3:00 pm
by sroussie
PHP Version 4.3.2

Posted: Wed Sep 24, 2003 3:27 pm
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 :)

Posted: Wed Sep 24, 2003 3:31 pm
by sroussie
Thanks, I'll give it a shot and see what happens.