the_oliver Posted March 1, 2007 Share Posted March 1, 2007 Hello. I was wondering how i can populate a field in a form, with the data from a database/variable? Eg A form for editing page content. Thanks! Quote Link to comment Share on other sites More sharing options...
Orio Posted March 1, 2007 Share Posted March 1, 2007 If it's an text/password field, use value="". If it's a textarea, put it in between the opening to the closing tag. For radio/checkboxes, you need to use checked="checked". Orio. Quote Link to comment Share on other sites More sharing options...
itsmeArry Posted March 1, 2007 Share Posted March 1, 2007 <?php $variable = "abc"; ?> <input type=text value="<?php echo $variable?>"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.