|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
'Working with forms in PHP' tutorial ...
I have just completed the 'Working with forms in PHP' tutorial and was stoked to find it worked.
What I am stuck on however, is what would need to be changed in the .php code (see below) to email the results to an address pre-defined in the .php file -------------------------------------------------------------- <HTML> <HEAD> <TITLE>Doing something with the form</TITLE> </HEAD> <BODY> <? if(isset($_POST['mybutton'])) { echo "Great! You clicked the button!n"; echo "<BR>You typed <b>" . $_POST['mytextbox'] . "</b> in the textbox.n"; if(isset($_POST['mycheckbox'])) { echo "<BR>You checked the checkbox.n"; } else { echo "<BR>You didn't check the checkbox.n"; } foreach($_POST['mycheckbox'] as $value) { echo "<BR>You clicked checkbox number " . $value , "n"; } echo "<BR>The color you picked was " . $_POST['myradio'] . "n"; echo "<BR>" . $_POST['myselectbox'] . " was chosen from the select list.n"; echo "<BR>In the textarea, you typed: " . $_POST['mytextarea'] . "n"; } else { echo "Hmm...you must have come to this script without clicking the button.n"; } ?> </BODY> </HTML> -------------------------------------------------------------- Can anyone assist or point me to a tutorial somewhere. Note: I am new to coding so it has to be super basic. Thanks, Stephen. |
|
#2
|
|||
|
|||
|
RE: 'Working with forms in PHP' tutorial ...
http://www.php.net/manual/en/ref.mail.php
|
![]() |
| Viewing: Codewalkers Forums > Other > Tutorials > 'Working with forms in PHP' tutorial ... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|