Bowser Posted March 1, 2006 Share Posted March 1, 2006 <FORM ACTION='trades.php?ID=$ID' METHOD='POST'><SELECT NAME=\"p1[]\" MULTIPLE SIZE=15><OPTION VALUE=\"\">List of all your stuff</option><OPTION VALUE=\"Stuff1\">Stuff</option><OPTION VALUE=\"Stuff2\">Stuff</option>how can i make it when i submit the info make like if i have both stuff selected make it show them Quote Link to comment https://forums.phpfreaks.com/topic/3804-need-help-with/ Share on other sites More sharing options...
cheyner11 Posted March 1, 2006 Share Posted March 1, 2006 if($stuff != "") { echo "<option selected value='$stuff'>$stuff</option>"; }The if clause can be changed to accommadate your data structure. Quote Link to comment https://forums.phpfreaks.com/topic/3804-need-help-with/#findComment-13233 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.