before i have a code for this

echo ('<div class="content" style="width: 293px; float: left;">
        <b>Host: </b> '.(isset($replay->game['creator']) ? $replay->game['creator'] : "n/a").' 

and then i will input a creator in my form

<textarea name='BBCode' style='width:592px; height:120px;' >[B]Host : [/B] (how toinsert creator in this area)  </textarea><br>
<input type='button' onclick='javascript:this.form.BBCode.focus();;' value='Select All'>

someone can help me?

Recommended Answers

All 2 Replies

Did you try flipping your double quotes and single quotes in your second snippet?

For example:
echo '<form><textarea name="BBCode" style="width:592px; height:120px;" > ...

okay thank you for your solution

Be a part of the DaniWeb community

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