I want to allow people on my site to post html inks in the text box where they submit their articles. Here is the code for the text box:

<td width="75%" align="left" class="heading">
						 <textarea cols=75 name=article_summary rows=25 class=textarea style="overflow:hidden;"><?=$_POST["article_summary"];?></textarea>
						</td>
						</tr>
						<tr> 
							<td colspan=2 bgcolor=white></td>
						</tr>
						<tr> 
							<td colspan=2 class="bodylinks" align=center>
							<input type=submit name=submitarticle value="Submit Article">
						</form>
							</td>
						</tr>
						<tr>

Can someone tell me what I've done wrong?

<textarea value="<?php echo $_POST["article_summary"] ?>"></textarea>

Maybe something along the lines of this? Although I'm not sure that will work

edit: yeah, that definately doesn't work...


... text areas don't allow their content to be formatted differently. So I really don't know if it is possible to display a link like http://daniweb.com in a text area.

You could take the user input and create the link in a different html element though... It depends what you want exactly

Here is post on my site. Notice that there is no link to the The Fat Loss Insider like the guy tried to post there. When I look from the admin section I see a herf line but on the site there is no link. http://www.articlehomestead.com/article10.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.