<select name="header">
foreach(options_typography_get_google_fonts() as $face2) {
echo '<option id="fontface2"';
echo 'name="fontface2"';
echo 'value="';
echo $face2;
echo '"/>';
echo $face2;
echo '</option>';
echo '<br />';
}
?>
</select>
I have stored the chosen value from the drop down list into a session. What I am trying to accomplish is "selecting" the option that was chosen and stored as the value after the form has been submitted.
I have tried adding this:
if($_SESSION['header']==$face2){ echo '"selected"'; }
And it works, however in the output - no matter where I put it - there isn't a space afterwards so the output is not showing selected. I have tried to use " ", ' ' and echo ' ' - but each one turns into an "=" sign in the output.
If anyone could help me - it would just mean the world! I have been playing with this for about 2 hours and I ready to pull my hair out!
Thanks!
Lynne