Jump to content


Photo

Need help with


  • Please log in to reply
1 reply to this topic

#1 Bowser

Bowser
  • Members
  • Pip
  • Newbie
  • 5 posts

Posted 01 March 2006 - 03:31 AM

<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

#2 cheyner11

cheyner11
  • Members
  • PipPip
  • Member
  • 10 posts
  • LocationCalgary, Alberta, Canada

Posted 01 March 2006 - 10:08 AM

if($stuff != "") { echo "<option selected value='$stuff'>$stuff</option>"; }

The if clause can be changed to accommadate your data structure.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users