invertigo Posted November 21, 2009 Share Posted November 21, 2009 Hello, I'm looking form some input on the following problem. User loads page -> page loads values from database and inputs them in boxes -> user edits input boxes -> new values saved to database Everything works except the "page loads values from database". Somehow it works in the "email" field (the email field displays the email adress loaded from the database) but it doesnt in the "bedrijfsnaam" field. The bedrijfsnaam field stays empty.. whatever I try it does not work. I pastebinned the entire code here: http://pastebin.com/m6c34089a Link to comment https://forums.phpfreaks.com/topic/182392-auto-fill-in-input-value-based-on-user_id/ Share on other sites More sharing options...
GingerRobot Posted November 21, 2009 Share Posted November 21, 2009 Do you have error_reporting(including notices) turned on? It could be that you've mistyped a variable name. Or perhaps the username has a quote mark in it? If you're using string variables in the value field, you should run them through htmlentities to ensure you don't end up closing the value tag with a quote mark that is in the variable. Link to comment https://forums.phpfreaks.com/topic/182392-auto-fill-in-input-value-based-on-user_id/#findComment-962454 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.