insert value into textbox

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
littlecoder
Forum Commoner
Posts: 26
Joined: Fri Oct 17, 2008 4:36 am

insert value into textbox

Post 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?
mattpointblank
Forum Contributor
Posts: 304
Joined: Tue Dec 23, 2008 6:29 am

Re: insert value into textbox

Post by mattpointblank »

Code: Select all

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