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! Link to comment https://forums.phpfreaks.com/topic/40685-solved-polulating-a-form/ 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. Link to comment https://forums.phpfreaks.com/topic/40685-solved-polulating-a-form/#findComment-196823 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?>"> Link to comment https://forums.phpfreaks.com/topic/40685-solved-polulating-a-form/#findComment-196824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.