Hi guys, i need help on the begging. I just want to call different page depends what radio button is select. This is of course, not working, but i’ll post code, just to give you idea what i want. If you can write code that works to, please. Thanks.
Here is code:
[php]
<?php $aKlima = $_POST['formKlima']; if(empty($aKlima)) { echo(""); } else { $N = count($aKlima); if($N['A']) { header("location:one.php"); } if($N['B']) { header("location:two.php"); } if($N['C']) { header("location:three.php"); } if($N['D']) { header("location:four.php"); } } ?>[/php]
And form:
<form action="#" method="post">
<input type="radio" name="formKlima" value="A" checked="checked" />A<br />
<input type="radio" name="formKlima" value="B" />B<br />
<input type="radio" name="formKlima" value="C" />C<br />
<input type="radio" name="formKlima" value="D" />D<br />
<input type="submit" name="formSubmit" value="Submit" />
</form>
Thank you!