Jump to content

Return defualt value for field


liquidg3

Recommended Posts

i dont know how you have them stored, but to output certain values as defaults in various fields it would be:

 

echo "<input type="text" value="".$defaultvalue."" />";

echo "<textarea rows="5" cols="50">".$defaultvalue."</textarea>";

 

as long as the values you wish to set as defaults are in the $defaultvalue variable

Link to comment
Share on other sites

For example... i have a field called Type. here is where i put the type of account someone has. In the database the default value is Basic. I am going to be changing the default, so how can i output the default value, which for now would be Basic. But if i change it to Advanced, I want it to show output Advanced. Thank You.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.