Simply? Increase box / box size

We have a custom CMS on the football site. Inside the CMS administration panel is the biography section of the command, as shown below:

app.php

In the screenshot above, you will see the “Biography” section. The code for this section in /app.php is:

    <ul class="tr">
        <li class="td1">Biography</li>
        <li class="td2"><input type="text" name="biography" value="<?=$row['biography']; ?>" /></li>
    </ul>

I am trying to make the biography window larger, as this paragraph will require a few paragraphs. Currently limited string with one character.

Im also hoping to repeat, making the box bigger on the actual result too. Screenshot:index.php

/index.php contains this code;

<ul class="tr">
<li><?=$row['biography']; ?></li>
</ul>

Any help regarding how I can increase the size of the input and output fields (to accommodate paragraphs rather than a single line) would be greatly appreciated.

+5
source share
4 answers

input a textarea.

<textarea name="biography"><?=$row['biography']; ?></textarea>

, .

<textarea rows="10" cols="50"></textarea>

( ) <br />.

<li><?= str_replace("<br />", "\n", $row['biography']); ?></li>
+7

<textarea> <input /> box

0

This plugin extends the text box to display whole lines if necessary: http://www.no-margin-for-errors.com/projects/prettycomments/

0
source

Yes, as the other guy said, it is best to use a text box, for example:

<TEXTAREA Name="content" ROWS=2 COLS=20></TEXTAREA>

Thus, you can choose the size of the width and length, and it will still have all the functionality of the input field.

-2
source

All Articles