form validation, set_value and initial value |
07-22-2018, 04:50 AM
(This post was last modified: 07-22-2018, 04:52 AM by PaulD. Edit Reason: Slight typo )
You are wrong
In the docs: https://www.codeigniter.com/user_guide/h...#set_value You would set a value like this: PHP Code: <input type="text" name="quantity" value="<?php echo set_value('quantity', '26'); ?>" size="50" /> This would set a default value of 26 to the input field. I hope that helps, Paul PS The docs are excellent - they are worth reading in detail. |
Messages In This Thread |
form validation, set_value and initial value - by foxbille - 07-21-2018, 01:33 PM
RE: form validation, set_value and initial value - by PaulD - 07-22-2018, 04:50 AM
RE: form validation, set_value and initial value - by foxbille - 07-22-2018, 07:14 AM
|