GetReady Posted December 23, 2009 Share Posted December 23, 2009 Hi, Im basically wondering if there is a way to change this drop down box style php code into an option in which you choose each class, e.g click here to choose class 2 as your class. <? for ($i=0; $i<count($conf["class"]);$i++){ echo "<option value=$i "; if ((strpos ( $cgi['join'], $conf['class'][$i]['name'])!== false)||($cgi['class']==$i)) { echo " selected "; } echo " >{$conf['class'][$i]['name']}</option> "; } ?> That is the code, any help or advice will be appreciated, many thanks! Link to comment https://forums.phpfreaks.com/topic/186098-selecting-a-class/ Share on other sites More sharing options...
trq Posted December 23, 2009 Share Posted December 23, 2009 I'm not sure I understand the question. Doesn't the rendered dropdown allow users to select a class? Link to comment https://forums.phpfreaks.com/topic/186098-selecting-a-class/#findComment-982792 Share on other sites More sharing options...
GetReady Posted December 23, 2009 Author Share Posted December 23, 2009 Hi, sorry for the lack of sense in my question, yes it does in short, but im wanting to vary this from drop down menu form to basically a link somewhat e.g click "select class 2 as my class", class 2 is chosen, Any help is appreciated thanks! Link to comment https://forums.phpfreaks.com/topic/186098-selecting-a-class/#findComment-982818 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.