View Full Version : forms


jasonlee
01-05-2005, 05:34 PM
I created a form using HTML. The only thing I know how to do is make the information pop up in an email for the user to send when you hit a submit, then the user has to actually send the email...as per the W3schools html tutorial.
I want to just get the information from the form to automatically email to me when the user hits submit (without the user having to hit send on their email program)

I browsed the php tutorial... but i dont want to process it in anyway i just want the info emailed to me

Any suggestions?

dilligaf
01-05-2005, 05:48 PM
Maybe start here http://www.apptools.com/phptools/forms/. I'm not a php'r, I googled it and it seemed easy to follow at least initially.

jasonlee
01-05-2005, 06:57 PM
this is helpful... thanks I am pretty much a novice so thanks for your patience.

Gnome_101
01-12-2005, 12:01 PM
You'll want to do something like this...

<form name="submit" method="post" action="<?echo $PHP_SELF?>">
<input type="hidden" name="action" value="submitted">
...

html code ....
...
<?php
if($HTTP_POST_VARS['action'] == 'submitted') {

// insert php code here

}
?>

Then you can use $VAR_NAME=$_POST['TEXT_FIELD_NAME']; // get the field from the HTML

To get the stuff from the data field.

Then you can use the variable $PART in any php function.

jlknauff
01-13-2005, 05:54 AM
If you are able to install things on your server through the control panel see if you have php form generator - it will build the form for you. The I would suggest taking the form & the php code and looking really deep into it to learn how it works ;)

Gnome_101
01-13-2005, 07:45 AM
true, learning from existing code is how I got where I am