Hey guys,
I have a small problem. I want to pass hidden name 'pid' to a select dropdown box. Any idea on how to do that? This is what I have:
The $show_project_list basically prints data from a db:
I am not sure where to pass the hidden name "pid on a select and how to grab the data". If it was a textbox, I would have done something like this:
I hope i'm not confusing anymore. Thanks in advance.
I have a small problem. I want to pass hidden name 'pid' to a select dropdown box. Any idea on how to do that? This is what I have:
Code:
<select name="project" class="select">
$show_project_list
</select>
The $show_project_list basically prints data from a db:
Code:
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)) {
$show_projects.=<<<EOF
<option value="$row[pid]">$row[ptitle]</option>
EOF;
I am not sure where to pass the hidden name "pid on a select and how to grab the data". If it was a textbox, I would have done something like this:
Code:
<input type="text" name="stag" />
<input type="hidden" name="pid" value="$pid">
I hope i'm not confusing anymore. Thanks in advance.