Welcome Guest, Not a member yet? Register   Sign In
form_dropdown and image load
#1

[eluser]benfike[/eluser]
Hi!

I want to make this: if I select something from the dropdown list, load image for the selected on the page, so the admin can see what he select.

So I have an newspictures table in my database(ID,status,name,image).

In the dropdown I make a list by name. But I want to show the image when someone choose one from the list.

Code:
<? if(set_value('img_id')){
$value = set_value('img_id');
}else{
$value = $post['img_id'];
}
echo form_dropdown('img_id',$images,$value);
?>

I hope you understand it Big Grin

Please helpTongue


Messages In This Thread
form_dropdown and image load - by El Forum - 06-09-2010, 03:18 AM
form_dropdown and image load - by El Forum - 06-09-2010, 10:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB