PDA

View Full Version : can i add the [code] thing in an template???



Charon
Sun 1st Apr '01, 8:26pm
<table width="100%" border="0" align="center">
<tr>
<td>
<div align="center">
<hr size="1">
<b><font face="verdana, arial, helvetica" size="5" color="#FF0000">Answer
DETAILS:</font></b></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font face="verdana, arial, helvetica" size="4"><b>Answer 1:</b></fonT><font face="verdana, arial, helvetica" size="4">
$post[answer_1]</font></div>
</td>
</tr>
<tr>
<td>
<div align="center"><font face="verdana, arial, helvetica" size="4"><b>Answer 2:
</b></font><font face="verdana, arial, helvetica" size="4">$post[answer_2]</font></div>
</td>
</tr>
<tr>
<td>
<hr size="1">
</td>
</tr>
</table>





I want that this thing "$post[answer_2]" is in the post with the code thing like this



This is the right answer

is there anyway to make that????????

tubedogg
Mon 2nd Apr '01, 3:46am
<blockquote>
code:
<hr>
This is the right answer.
<hr>
</blockquote>

That's all the code thing is, anyway.

Kier
Mon 2nd Apr '01, 4:14am
Actually, it's this:
<blockquote>code:<hr>
<pre>some text here</pre>
<hr></blockquote> But you get the idea...

Charon
Mon 2nd Apr '01, 7:17am
Thx dudes thats it ;-) but now the problem when i type some thing like that


Y__O__U____A__R__E____T__H__E____W__I__N__N__E__R

the _ are for empty spaces the problem is when i make an newthread i have the option to insert an answer so when i dude replys they can view the answer but the problem is when this thing with the empty spaces get stored in the DB and then you can view the post and the emptyspaces arre out ;-( so is there any idea how i can make that??

Charon
Mon 2nd Apr '01, 7:24am
<td width="23%"><b>Answer 2:</b></td>
<td width="77%">
<input type="text" name="Answer_2" maxlength="255" size="30">
</td>

can i make it that this input field stores automatic with the code thing???