im dynamically changing an image based on the used input from a form, i want the entered data to stay on the form when the page refeshes to update the image.
For the text box i just created a variable in php and grabbed the value of the text box when the form was posted using $_post, then in the text tag i did value=<?php echo "variable" ?> and this worked fine.
i tried to do the same with selection boxes and it didnt work, i.e
<select name="selbox" selectedIndex= <php? echo "variable" ?>>
this didnt work, so then i just tried manually setting the selection of the selection list i.e selectedIndex = 1, just to see if i was setting it the right way, this didnt work either
what am i doing wrong? how do i set/change the selected item from a select list?
cheers
mike