Hello, I am a newb at PHP, and I'd like to ask for some help. I have a registration page, I want to make sure they agree to the terms of service before they can register.
I hope the code below shows up right. But it's the form I am using. I just want a simple, if they don't click the check box then it goes to a page (Maybe the same page with their info still loaded) saying, Sorry, You cannot register without agreeing to the TOS, something along those lines. Can someone walk me through doing this, I'd like to learn.
If the PHP looks advanced, it's not mine. I am using an open source program that I just had to install and edit.
Thanks in advance for all the help.
Joel
<td width="100%"><br><form method="post" action="register.php">
<table width="100%" cellspacing="0">
<br>
<br>
<td valign="top" align="center" class="star"><input type="checkbox" name="AgreeTOS" value="1" <? if ($AgreeTOS==1) { print "checked"; } ?> />Agree to Terms Of Service<br>
<br>
<br>
<tr>
<td><? echo $la_mailaddress ?>:</td>
<td valign="top" class="star"><input type="text" name="email" class="txt" size="30" maxlength="100" value="<? echo $email ?>" /> </td></tr>
<tr>
<td><? echo $la_fullname ?>:</td>
<td valign="top" class="star"><input type="text" name="name" class="txt" size="16" maxlength="16" value="<? echo $name ?>" /> </td></tr>
<tr>
<td><? echo $la_pass1 ?>:</td>
<td valign="top" class="star"><input type="password" name="passwd" class="txt" size="16" maxlength="16" value="<? echo $passwd ?>" /> </td></tr>
<tr>
<td><? echo $la_pass2 ?>:</td>
<td valign="top" class="star"><input type="password" class="txt" name="passwd2" size="16" maxlength="16" value="<? echo $passwd2 ?>" /> </td></tr>