Solarpitch Posted January 13, 2007 Share Posted January 13, 2007 Why I am online today, may as well ask another question . . Is there anyway to populate textfields with database values? Call the information into textfiels so the user can update thier profile? Link to comment https://forums.phpfreaks.com/topic/34026-populating-textfield-with-db-values/ Share on other sites More sharing options...
fenway Posted January 13, 2007 Share Posted January 13, 2007 You can use PHP to put whatever you want in the VALUE attribute of most INPUT fields... as for updating, well, there are many tutorials on that. Link to comment https://forums.phpfreaks.com/topic/34026-populating-textfield-with-db-values/#findComment-159967 Share on other sites More sharing options...
Solarpitch Posted January 13, 2007 Author Share Posted January 13, 2007 How would I embed that? Something like this...<td><input name="header" type="text" id="header" style="width: 300px; " value= ' . "$fill_header" . '></td> Link to comment https://forums.phpfreaks.com/topic/34026-populating-textfield-with-db-values/#findComment-160025 Share on other sites More sharing options...
fenway Posted January 14, 2007 Share Posted January 14, 2007 I believe you'd need a <?php> open/close tag pair, but yes. Link to comment https://forums.phpfreaks.com/topic/34026-populating-textfield-with-db-values/#findComment-160201 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.