<?PHP
activated by submit button
if (isset($POST['submit-gedrukt'])) {
$selected_button = $POST['hulp']; // content = "value' waarde in de button forn
}
$a = 'checked';
$b = '';
$c = '';
?>
selektie =
<?
echo $selected_button;
?>
<?php
if ($selected_button == "1") {
echo "altijd";
$a = 'checked';
$b = 'unchecked';
$c = 'unchecked';
}
else if ($selected_button == "2") {
echo "soms";
$a = 'unchecked';
$b = 'checked';
$c = 'unchecked';
} else if ($selected_button == "3" ){
echo "nooit";
$a = 'unchecked';
$b = 'unchecked';
$c = 'checked';
}
?>
<FORM name ="formnaam" method ="post" >
<INPUT TYPE = 'Radio' Name ='hulp' value= '1' <?PHP print $a; ?> >altijd <br> <!-- '$a' = checked -> default selectected -->
<INPUT TYPE = 'Radio' Name ='hulp' value= '2' <?PHP print $b; ?> >soms <br>
<INPUT TYPE = 'Radio' Name ='hulp' value= '3' <?PHP print $c; ?> >nooit <br>
<P>
<!-- <INPUT TYPE = "Submit" Name = "submit-gedrukt" VALUE = "Select a Radio Button"> -->
</FORM>
<!-- launch movie by button -->
<FORM>
<INPUT type="button" value="button film1" onClick="myframe.location.href='http://aaa.bbb.cc'">
</FORM>
<iframe frameborder="1" name="myframe" width="700" height="400" scrolling="auto" > </iframe>
</body>
</html>
Here the film is launched (derived from vimeo.com ) , but there eis not yet a coupling between radio button selection and launching the movie(S).
Can you give based on this a solution please?