Good day,
I am new to forums and PHP and would like some advice on the best method to develop a form and the required scripting which could be used to screen potential job applicants based on a series of questions with yes/no radio buttons for response as follows:
Q1. Are you over 18 y / n
Q2. Are you computer literate y / n
Q3. Do you have a driver's licence y / n
Q4. Have you ever had a driving offence y / n
Q5. Are you willing to travel y / n
Succesful completion of the form by answering 1y, 2y, 3y, 4n, 5y would direct the user to success.php for data acquistion. Any other combination of responses would automatically direct the user to unsuccessful.htm
After searching through other posts in this forum, I gather that I have to post the form data to a php script page <form name="form1" method="post" action="assessment.php"> but don't know where to begin to develop the assessment page.
I would appreciate any guidance offered to point me in the right direction.
My basic form code is
<html><body>
<form name="screening" method="post" action="assessment.php">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Q1. Are you over 18 </td>
<td><input type="radio" name="Question1" value="yes"> Yes </td>
<td><input type="radio" name="Question1" value="no"> No </td>
</tr>
<tr>
<td>Q2. Are you computer literate </td>
<td><input type="radio" name="Question2" value="yes"> Yes </td>
<td><input type="radio" name="Question2" value="no"> No </td>
</tr>
<tr>
<td>Q3. Do you have a driver's licence</td>
<td><input type="radio" name="Question3" value="yes"> Yes </td>
<td><input type="radio" name="Question3" value="no"> No </td>
</tr>
<tr>
<td>Q4. Have you ever had a driving offence</td>
<td><input type="radio" name="Question4" value="yes"> Yes </td>
<td><input type="radio" name="Question4" value="no"> No </td>
</tr>
<tr>
<td>Q5. Are you willing to travel</td>
<td><input type="radio" name="Question5" value="yes"> Yes </td>
<td><input type="radio" name="Question5" value="no"> No </td>
</tr>
</table>
<br>
<input type="submit" name="Submit" value="Submit">
</form>
</body></html>
Thank you for your help and advice.
Allan