Re: [PHP] Help with mail() function
[snip] ?php if ($TextArea=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; mail($to, $subject, $message,From: $from); echo Thankyou; } ? [/snip] What is happening when the form is posted? This is just a guess, but I think registar_globals is probaby off. try this ?php if ($_POST['TextArea']=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; mail($to, $subject, $message,From: $from); echo Thankyou; } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with mail() function
ahh, I have to correct myself replace this: if ($_POST['TextArea']=) { with this: if ($_POST['TextArea']==) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with mail() function
did you replace ($TextArea=) with ($TextArea==) ? ($TextArea=) will reassign $TextArea to Pooya Eslami [EMAIL PROTECTED] 2/2/2004 3:00:32 PM Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are sent fine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Help with mail() function
Well the problem is not that it won't get executed, its that every thing will be sent except the message in the textarea! subject, to and from are sent fine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Help with mail() function
Pooya Eslami wrote: Hi, I'm new to php and this newsletter. I have a form on my webpage and a php file to email it to me but the contents of the text area are not emailed to me. Can anyone help me with this? here is the code for my html and php files: html headtitleTest/title/head body form action=textareamail.php method=POST Comments: /br textarea rows=10 cols=50 name=TextArea/textarea /br input type=reset value=Clear input type=submit value=Submit /form /body /html ?php if ($TextArea=) { echo You have to fill out the entire form, go back and try again.; } else { $to = [EMAIL PROTECTED]; $from = From-Test; $subject = Subject-Test; $message = $TextArea; $message=$_POST[TextArea]; mail($to, $subject, $message,From: $from); echo Thankyou; } ? A better way (imo) is to do it as javascript and pop up a window with the message. No server-side processing is then needed until a successful message is submitted. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with mail() function!
You wouldn't happen to be on a windows system? Read the Warning: on the manual page: http://www.php.net/manual/en/function.mail.php --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with mail() function!
No I only work on *nix platforms Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You wouldn't happen to be on a windows system? Read the Warning: on the manual page: http://www.php.net/manual/en/function.mail.php --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info | layoutsolution.info | formsolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php