Hi,
I have to radio buttons and depending on the selection it must eighter insert step2.php or insert.php in the action part of the form.
Now it's just going to steo2.php
I also tried elseif ($rado="no") but thats giving the same problem.
Thans
[PHP]
<form id="form1" name="form1" method="post" action="<? $radio=$_POST['radio']; if ($radio="yes")
echo "step2.php" ;
else
echo "insert.php "; ?> ">
<p>
<label>
<input name="radio" type="radio" value="yes" />
</label>
</p>
<p>
<input name="radio" type="radio" value="no" />
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
[/PHP]
I have to radio buttons and depending on the selection it must eighter insert step2.php or insert.php in the action part of the form.
Now it's just going to steo2.php
I also tried elseif ($rado="no") but thats giving the same problem.
Thans
[PHP]
<form id="form1" name="form1" method="post" action="<? $radio=$_POST['radio']; if ($radio="yes")
echo "step2.php" ;
else
echo "insert.php "; ?> ">
<p>
<label>
<input name="radio" type="radio" value="yes" />
</label>
</p>
<p>
<input name="radio" type="radio" value="no" />
</p>
<p>
<label>
<input type="submit" name="Submit" value="Submit" />
[/PHP]
Comment