Welcome Guest, Not a member yet? Register   Sign In
I don't understand the Form user guide
#1

[eluser]phantom-a[/eluser]
I'm looking in the User guide for making Forms

I don't understand how it means for the code to be used. Do you put the code in the controller or the View?

Here is Qoute for example.

Code:
form_dropdown()

$options = array(
                  'small'  => 'Small Shirt',
                  'med'    => 'Medium Shirt',
                  'large'   => 'Large Shirt',
                  'xlarge' => 'Extra Large Shirt',
                );

$shirts_on_sale = array('small', 'large');

echo form_dropdown('shirts', $options, 'large');

// Would produce:

<select name="shirts">
<option value="small">Small Shirt</option>
<option value="med">Medium Shirt</option>
<option value="large" selected="selected">Large Shirt</option>
<option value="xlarge">Extra Large Shirt</option>
</select>

umm where do I put that code?


Messages In This Thread
I don't understand the Form user guide - by El Forum - 09-15-2008, 06:25 PM
I don't understand the Form user guide - by El Forum - 09-15-2008, 06:47 PM
I don't understand the Form user guide - by El Forum - 09-15-2008, 06:55 PM
I don't understand the Form user guide - by El Forum - 09-15-2008, 08:43 PM
I don't understand the Form user guide - by El Forum - 09-15-2008, 10:59 PM
I don't understand the Form user guide - by El Forum - 09-16-2008, 08:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB