haha, thanks. Now I understand.
but i came up with a different solution, although it's not working all the time. maybe a fresh set of eyes would help. care to look?
the problem is that it works the first time it's called, but not the second, it reverts back to the $load value, although the $preview value is being returned on submit.
the function:
<?php
function radioChecked($preview, $letter, $load) {
if(isset($_POST['main_preview1']) || isset($_POST['main_preview2']) || isset($_POST['main_preview3']) || isset($_POST['news_preview']) && $preview == $letter){
echo 'checked';
} else if ($load == $letter) {
echo 'checked';
}
}
?>
calling the function:
<input name="font1" type="radio" value="g" <?php radioChecked($previewone[2], 'g', $loadone[2]); ?>>
Goudy
<input name="font1" type="radio" value="h" <?php radioChecked($previewone[2], 'h', $loadone[2]); ?>>
...
<input name="font2" type="radio" value="g" <?php radioChecked($previewtwo[2], 'g', $loadtwo[2]); ?>>
Goudy
<input name="font2" type="radio" value="h" <?php radioChecked($previewtwo[2], 'h', $loadtwo[2]); ?>>