|  | Posted by worzel on 11/18/05 14:26 
Sorry, mistake on that first line, here is actual:
 $address = eregi_replace("\n\r","",$_POST['address']);
 
 // other vars here
 
 $body .= $br."Address: " .  $address;
 
 // more construction of emails body here
 
 mail("$to","$subject","$body" );
 
 // and off goes the email no problem - but line breaks still in boy fo rsoem
 resaon!
 
 "worzel" <asda@sdarta.com> wrote in message
 news:437dbeed$0$22513$5a62ac22@per-qv1-newsreader-01.iinet.net.au...
 > sorry for similar / dupe - thought i confused the issue first time
 >
 > $string=eregi_replace("\n\r","",$_POST['address']);
 >
 > Why is this not stripping the newlines/returns from my HTML text area? How
 > do i do this - do in jsp easy, asp very easy, but in php it gives me
 > headache!
 >
 > my text are is wrap="soft" (and testing with ie in which this default
 > anyway) i cannot see nothing wrong -even when i try str_replace() and
 > other methods.
 >
  Navigation: [Reply to this message] |