I want to add a required check box to my sign up form for terms & conditions. Can someone help me out?
My Code:
HTML Code:
function user_signup() {
global $db_prefix;
?>
<div align="center">
<h1>Sign Up</h1>
<form action="signup.php" method="post">
<table width="100%">
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
Username:<br> </td>
<td align="left">
<input type="text" name="username" size="30" <?php if (isset($_POST['username'])) echo "value=\"" . $_POST['username'] . "\"" ?>> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
Name:<br> </td>
<td align="left">
<input type="text" name="name" size="30" <?php if (isset($_POST['name'])) echo "value=\"" . $_POST['name'] . "\"" ?>> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
Password:<br> </td>
<td align="left">
<input type="password" name="password" size="30"> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
Confirm Password:<br> </td>
<td align="left">
<input type="password" name="password2" size="30"> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
E-mail:<br> </td>
<td align="left">
<input type="text" name="email" size="30" <?php if (isset($_POST['email'])) echo "value=\"" . $_POST['email'] . "\"" ?>> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">
Paypal:<br> </td>
<td align="left">
<input type="text" name="paypal" size="30" <?php if (isset($_POST['paypal'])) echo "value=\"" . $_POST['paypal'] . "\"" ?>> </td>
</tr>
<tr>
<td width="10%"> </td>
<td width="30%" valign="top" align="right">Date of Birth: <br> </td>
<td align="left">
<select name="month">
<?php
for ($i = 1; $i < 13; $i++) {
?>
<option value="<?php echo $i ?>"><?php echo $i ?>
<?php
}
?>
</select>
/
<select name="day">
<?php
for ($i = 1; $i < 32; $i++) {
?>
<option value="<?php echo $i ?>"><?php echo $i ?>
<?php
}
?>
</option>
</select>
/
<select name="year">
<?php
for ($i = 1900; $i < (date("Y",time()) ); $i++) {
?>
<option value="<?php echo $i ?>"><?php echo $i ?>
<?php
}
?>
</option>
</select>
(Month/Day/Year) </td>
</tr>
</table>
<?php
$r = my_query("select * from " . $db_prefix . "image_verifications where pagename='sign up' and status='y'");
if (mysql_num_rows($r)) {
?>
<table width="100%">
<tr>
<td width="10%"> </td>
<td width="30%" align="right" valign="top">
Enter the number exactly how you see it.<br>
</td>
<td valign="top" width="46">
<input type="text" name="checker" size="6">
</td>
<td width="672" align="left" valign="top">
<img src="jpeg.php" border="0" style="border:#000000; border-style:solid; border-width:1px"> </td>
</tr>
</table>
<?php
}
?>
<br>
<input type="submit" value=" Submit ">
</form>
I'm wanting to put it at the very end right after the verification code and above the submit button.