Jump to content

Archived

This topic is now archived and is closed to further replies.

Bowser

Need help with

Recommended Posts

<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

Share this post


Link to post
Share on other sites
if($stuff != "") { echo "<option selected value='$stuff'>$stuff</option>"; }

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


Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.