Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/register.php
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//-->
</script>
 
<?
include('header.php');
?>
<p><br>
</p>
<table width="<?=$hWidth?>" cellpadding="2" align="center">
  <tr> 
    <td class="header"><?=$langop_register_title?></td>
  </tr>
  <tr> 
    <td><form name="form1" method="post" action="functions.php">
        <table width="95%" cellpadding="2" align="center" cellspacing="2" class="infotable">
          <tr> 
            <td width="7%"><?=$langop_word_username?>:</td>
            <td width="93%"> 
              <input type="text" name="username" class="txtinput" style="width: 100%;"> 
            </td>
          </tr>
          <tr> 
            <td><?=$langop_word_email?>:</td>
            <td height="32"> <input name="email" type="text" class="txtinput" style="width: 100%;" onBlur="MM_validateForm('email','','RisEmail');return document.MM_returnValue"> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><?=$langop_register_sub1?> 
              <?if($approval=="no"){ echo "<br><br><b>$langop_register_sub2</b>";}?>
            </td>
          </tr>
          <tr> 
            <td><?=$langop_install_password?>:</td>
            <td height="34"> <input type="password" name="pass" class="txtinput" style="width: 100%;"> 
            </td>
          </tr>
          <tr> 
            <td><?=$langop_install_password?>:</td>
            <td> <input type="password" name="pass2" class="txtinput" style="width: 100%;"> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td><?=$langop_word_comments?>:</td>
            <td> <input type="text" name="comments" maxlength="80" class="txtinput" style="width: 100%;"> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td>(<?=$langop_register_sub3?>) </td>
          </tr>
          <tr> 
            <td><?=$langop_addusr_arturl?>:</td>
            <td> <input type="text" name="artURL" value="http://" class="txtinput" style="width: 100%;"> 
            </td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td><?=$langop_register_sub4?> <b>*<?=$langop_register_sub5?>*</b><br> <br>
             <?=$langop_register_sub6?>
              <?if($approval=="no"){ echo "<br><br><b>".$langop_register_sub8."</b>";}?>
              <br> <br>
              <?=$langop_register_sub7?></td>
          </tr>
          <tr> 
            <td>&nbsp;</td>
            <td> <input name="register" type="submit" class="submit" onClick="MM_validateForm('email','','RisEmail');return document.MM_returnValue" value="Submit"> 
            </td>
          </tr>
        </table>
        <br>
      </form></td>
  </tr>
</table>
<br>
<br>
</body>
<? include('footer.php'); ?>
Return current item: OekakiPoteto