liquidg3 Posted August 17, 2003 Share Posted August 17, 2003 So, Users can create their own fields, and set their own default value for each. So, how can i output the default value? Thanx Link to comment https://forums.phpfreaks.com/topic/907-return-defualt-value-for-field/ Share on other sites More sharing options...
akitchin Posted August 18, 2003 Share Posted August 18, 2003 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 https://forums.phpfreaks.com/topic/907-return-defualt-value-for-field/#findComment-3029 Share on other sites More sharing options...
liquidg3 Posted August 18, 2003 Author Share Posted August 18, 2003 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 https://forums.phpfreaks.com/topic/907-return-defualt-value-for-field/#findComment-3030 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.