Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<p><br> forms

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
help i am trying to convert carrage returns in a form, and am not having any luck.


$content = eregi_replace(&quot;<br>&quot;,&quot;
&quot;,$content);

seems to be adding an extra <br> tag every time i submit the form.

$content = eregi_replace(&quot;<p>&quot;,&quot;
&quot;,$content);

adds spaces when i only need a newline

$content = eregi_replace(&quot;<p>&quot;,&quot;

&quot;,$content);

$content = eregi_replace(&quot;<br>&quot;,&quot;
&quot;,$content);

just adds two <br> tags.. help please
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top