
April 19th, 2003, 06:11 PM
|
|
Junior Member
|
|
Join Date: Apr 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
BB Code into a form ?
Hi All,
Im fairly new to writing scripts with PHP. I've currently making a news script using PHP and MySQL, the News manager is nearly complete but i would like to add some BB Code to the form giving them features like and a link <br> and <p> but i just havent a clue how to include it into my form here's the form so far :
Quote:
<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<p><font color="#336699" size="3" face="Arial, Helvetica, sans-serif"><strong><u>Add
News Item</u></strong></font></p>
<p><font color="#336699" size="2" face="Arial, Helvetica, sans-serif"><br />
Headline (<em> title of news</em> )<br>
<input type="text" name="headline" size="53" maxlength="255" STYLE= background="#D3E3F1" />
</font></p>
[COLOR=dark red]<p><font color="#336699" size="2" face="Arial, Helvetica, sans-serif"><br />
Content (<em> news story</em> )<br>
<textarea name="content" cols="40" rows="5" STYLE= background="#D3E3F1"></textarea>
</font></p>
<p><font color="#336699" size="2" face="Arial, Helvetica, sans-serif">Author's
Name</font><font size="2" face="Arial, Helvetica, sans-serif"><br>
<input type="text" name="author" size="53" maxlength="255" STYLE= background="#D3E3F1" />
</font><font size="2" face="Arial, Helvetica, sans-serif"><br>
</font><br />
<img src="images/spacer.gif" width="100" height="8">
<input type="submit" name="submit" value="Add News Item" STYLE= background="#D3E3F1" />
</p>
</form>[/COLOR] |
I would like the BB code to be fuctional onli in the [COLOR=dark red]content text area[/color] ?
If anyone can point me in the right direction that would be great.
Thx for yout time and effort
Jackal
Last edited by jackal : April 20th, 2003 at 04:23 AM.
|