Welcome Guest, Not a member yet? Register   Sign In
Dropdown in a form
#1

[eluser]maniac[/eluser]
I am trying to add a dropdown list in a form instead of using a text box for the information to be added, but it keeps coming up blank. Can anyone help me with what I am doing wrong?

My code on the view page -

<form action="http://localhost/aStage2CI/index.php/results/insertresult" method="POST">
<p class ="bold">Course ID:<br />
<select name="Select">
&lt;?php foreach($result as $row):?&gt;
<option value="&lt;?echo $row->courseid?&gt;">
&lt;?echo $row->courseid?&gt;</option>
&lt;?php endforeach;?&gt;
</select></p> ..........&lt;/form&gt;

The actual form worked well with just the text boxes.

Thanks


Messages In This Thread
Dropdown in a form - by El Forum - 05-02-2010, 02:23 AM
Dropdown in a form - by El Forum - 05-02-2010, 05:45 AM
Dropdown in a form - by El Forum - 05-02-2010, 06:08 AM
Dropdown in a form - by El Forum - 05-02-2010, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB