Re: mail() and textarea

From: Date: Sat, 16 Dec 2000 03:44:45 +0000
Subject: Re: mail() and textarea
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-30647@lists.php.net to get a copy of this message
On 15 Dec 2000 17:34:25 -0800, mailing_list@gmx.at wrote: >> Please post the script...if your textarea is called $foo are you doing >> any >> processing to $foo before it get's to the mail function? >> > >here is the (simplified) script: > ><? > if (isset($submit)){ > mail("inputyouraddress@mysite.com","SomeSubject",$textarea_content); mail("inputyouraddress@mysite.com", "SomeSubject", ereg_replace("[\n\r]+","\n",$textarea_content) ); > echo "OK"; > }else > echo " ><html> ><body> ><form method=post> ><textarea name=\"textarea_content\"></textarea> ><input type=submit name=submit value=Submit> ></form> ></body> ></html>"; >?> Enjoy -- Michael Brunson 504.473.6643 brunson@intercosmos.com ICQ: 83163789 <? Special Projects Programming Manager ?> --- Intercosmos Media Group, Inc. --- www.intercosmos.com www.directnic.com

« previous php.general (#30647) next »