MySQL Forums
Forum List  »  PHP

Redirecting with radio buttons
Posted by: R M
Date: February 25, 2006 09:59AM

The following code is part of a form I am creating. I need to be able to load a different php page depending on what radio button is selected. If the user selects 'supervisor' they can remain and fill out the rest of the form. If the user selects either of the other three radio button options (second marker, third marker etc) then I want to load up another php page. Does anyone know how to incorporate it in to the code below? Any help appreciated.

<form action="transact.php" name="create_project_form" method="post">
<table border="0" cellpadding="15" bgcolor="<?php echo $tablebg;?>">
<tr>
<td>Select Lecturer Role:</td>
<td>
<input type="radio" name="role" value="Supervisor">Supervisor<br>
<input type="radio" name="role" value="Second Marker">Second Marker<br>
<input type="radio" name="role" value="Third Marker">Third Marker<br>
<input type="radio" name="role" value="Fourth Marker">Fourth Marker<br>
</td>
</tr> . . .

Regards
RM

Options: ReplyQuote


Subject
Written By
Posted
Redirecting with radio buttons
R M
February 25, 2006 09:59AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.