Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form text

Status
Not open for further replies.

PulsaMatt

IS-IT--Management
Apr 25, 2002
151
US
How would I go about putting text into a field in a form (pre-filling it out would be the closest thing to wording).

I am using PHP to do the form handling and I would like to be able to pull this information from a mySQL database to make it editable. I know the mySQL side, I just dont know how to put text back into a text area. Thanx.
Matt Laski
Sysadmin, Pulsafeeder Inc.
Dell Inspiron 7500
466 MHz Celeron, 384 MB RAM, 26 GB on 2 HDDs
 
if it is a <textarea> the text goes between the <textarea> and the </textarea> ... if it is a <input type=text> it goes in the value-attribute of the input-tag like this:
<input type=text name=fldname value='yadda yadda yadda'> This is not a bug - it's an undocumented feature...
;-)
 
thanks! Matt Laski
Sysadmin, Pulsafeeder Inc.
Dell Inspiron 7500
466 MHz Celeron, 384 MB RAM, 26 GB on 2 HDDs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top