简体   繁体   中英

how can i recall data from an SQL table TEXT field into and HTML textarea using PHP? (all part of a simple Article Management System)

I building my own simple article management system, and have run into a bit of trouble upon creating a page to edit the articles.

I am able to recall the title and tagline of the articles in the form input using the 'value' attribute.

However, I am yet to work out how to do the same thing with the form textarea as it has no 'value' attribute.

Also, can the same be done with a dropdown menu in the HTML form select?

The textarea input type does not have a value field, the value must be placed within the tag itself. For example:

<textarea>Here are the contents of the textarea</textarea>

To populate the select field, the syntax would be:

<select> <option value="value1">Value 1</option> </select>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM