Jump to content

Selecting a class.


GetReady

Recommended Posts

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

Archived

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

×
×
  • Create New...

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.