if ( $avatar_on == "0" ) { $avsel = "selected" ; } ;if ( $gender_on == "0" ) { $gavsel = "selected" ; };
<select type=\'dropdown\' name=\'gender_on\'><option value=\'1\''; if($gender_on == "1"){ echo "selected"; } echo '>Yes</option><option value=\'0\' '; if($gender_on == "0"){ echo "selected"; } echo '>No</option></select>
<select type=\'dropdown\' name=\'gender_on\'><option value=\'1\''; if($gender_on == "1"){ echo "selected"; $yup = 1; } echo '>Yes</option><option value=\'0\' '; if($gender_on == "0"){ echo "selected"; $yup = 2; } echo '>No</option></select>echo "<br>$yup<br>";
index.php // Before the default case 'whatever': include ('whatever.php'); break;URL PATH: http://127.0.0.1/arcade/index.php?action=whateverwhatever.php<?php{ global $domain, $db, $templates, $directorypath; // and whetever else you need}include "includes/config.php"; // If you need to.BLAH!//If it's a functionfunction whatever() { global $domain, $db, $templates, $directorypath; // and whetever else you needBLAH!}?>