Jump to content

Auto fill in input value based on User_ID


invertigo

Recommended Posts

 

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.