static combo box
Posted 28 March 2006 - 02:02 PM
my code goes something like this..
<input type=text name=msgbox>
<input type=submit name=submit>
its actly meant for selecting a user from the combo box and sending the message typed in the text field.
however, after i click send, the value of combo box resets to the first value...and i again have to select it from the box.
Isnt there any way that i can make the box static so that the next time i dont have to select the recepient of my msg..
Posted 28 March 2006 - 02:05 PM
Once you have the value in a cookie or in the POST/GET super global array, all you have to do is create an option like this:
<option value="harry" selected="selected">harry</option>
Then just create your other options normally.
Info: PHP Manual
Posted 28 March 2006 - 02:37 PM
The $_POST['....'] trick worked.
Great man...Thanks a lot.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users