Page 1 of 1

insert value into textbox

Posted: Tue Mar 17, 2009 3:56 am
by littlecoder
hi,
how to insert a value into textfield which has been retrieved from the database programmatically ?
eg : i retrieved a value "hundred" from the database and i want to insert into a textfield via program?

Re: insert value into textbox

Posted: Tue Mar 17, 2009 4:03 am
by mattpointblank

Code: Select all

 
$age = 100;
echo "<input type='text' name='age' value='$age' />";