Jump to content

How do you load a php variable value into a form field as a default value?


Conjurer

Recommended Posts

I saw some code somewhere and can't remember now how you do it. But they had a text box in a form and they wanted to show the user the current value that they returned from a database and then give them an option to change it.

 

They set a variable like $foo = "bar"

and then somehow used php for the default value of the form box to get it to show the value "bar"

 

How do you do that?

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.