Welcome Guest, Not a member yet? Register   Sign In
form validation, set_value and initial value
#2

(This post was last modified: 07-22-2018, 04:52 AM by PaulD. Edit Reason: Slight typo )

You are wrong  Smile

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.
Reply


Messages In This Thread
RE: form validation, set_value and initial value - by PaulD - 07-22-2018, 04:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB