I have a fairly simple mail form which gets email, subject and message and posts to itself.

<form method="post">
<input type=hidden name=doit value=1>
<b>Your Email Address:</b>
<br>
<input type="text" name="email" size=40 value="<?
if(isset($email)) { echo $email; }
?>">
<br><br>
<b>Subject:</b>
<br>
<input type=text name=subject size=40 value="<?
if(isset($subject)) { echo $subject; }
?>">
<br><br>
<b>Message:</b>
<br>
<textarea name="message" rows="10" cols="40"><?
if(isset($message)) { echo $message; }
?></textarea>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</form>


It then use mail() function to send a email.

mail( $admin_email, $subject, $message, "From: $email" );


Problem is the message gets truncated if there is a comma in the message after the comma.

Has anyone had this problem, got a solution to it.

Regards,
Ben

****************************************************************
* Ben Edwards +44 (0)117 9400 636 *
* Critical Site Builder http://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* Get alt news/views films online http://www.cultureshop.org *
* i-Contact Progressive Video http://www.videonetwork.org *
* Smashing the Corporate image http://www.subvertise.org *
* Bristol Indymedia http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B 49F3 3056 C6DB 8538 EEF8 *
****************************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to