Paster lige hele siden ind
<?
If ($adduser)
{
If ($submitrule==1)
{echo "<form action=\"
http://www.bogofan.dk/index.php?Side=createuser.php\" method=\"post\">";}
else
{echo "<script language=\"javascript\">alert('bla bla bla')</script>";}
}
?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td
style="background-color: white;
border : 1px solid Black;
font : bold 12px Verdana;
color: #4169E1;
width: 456px;
text-align: left;
padding-left: 5px;
">Opret ny bruger</td>
</tr>
</table>
<?echo $opretmsg;?>
<table cellspacing="0" cellpadding="0" border="0" style="width: 463px;">
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Brugernavn</td>
<td
style="border-right: 1px solid Black;
border-right : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="text" name="Brugernavn"></td>
</tr>
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Password</td>
<td
style="border-right: 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="text" name="Password"></td>
</tr>
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Rigtigt navn</td>
<td
style="border-right: 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="text" name="Rigtigtnavn"></td>
</tr>
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Mailadresse</td>
<td
style="border-right: 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="text" name="Mailadresse"></td>
</tr>
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Jeg ønsker at modtage nyhedsmails</td>
<td
style="border-right: 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="checkbox" checked name="submitmail" value=""></td>
</tr>
<tr>
<td
style="
border-left : 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
">Jeg har læst og acceptere reglerne på B & O Fan</td>
<td
style="border-right: 1px solid Black;
border-bottom : 1px solid Black;
background-color: #DCDCDC;
font : normal 10px Verdana;
color: black;
padding: 5px;
"><input type="checkbox" name="submitrule" value="1"></td>
<input type="hidden" name="Status" value="1">
<?
$Rand=md5(uniqid(rand(), true));
echo "
<input type=\"hidden\" name=\"Unikid\" value=\"$Rand;\">
";
?>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td
style="background-color: white;
width: 463px;
text-align: left;
"><input type="submit" name="adduser" value="Opret mig som bruger" style="background-color: white; heigh:8px; font : 10px Verdana; width: 463px; color: #4169E1;"></td>
</tr>
</table>
</form>
Det er submitrule der skal være = 1 hvis den er accepteret
MC