Jump to content
php.lv forumi

Verify code


Llama

Recommended Posts

Man nerāda bildi verify code ! Kas varētu būti pa kļūdu ??

 

register.jpg

 

Vai arī varāt pateikti kā lai uzliek lai neprasa To kodu ???

 

Reku register.php

 

 

<?
if(!isset($_GET['op'])){
require("../includes/denied.php");
denied('register');
}
?>
<?php require("config.php"); ?>
<script language="Javascript" type="text/javascript">
function check_register_form()
{
if ( document.register_from.account.value == "")
{
alert("Please enter Account.");
return false;
}
if ( document.register_from.password.value == "")
{
alert("Please enter Password.");
return false;
}

if ( document.register_from.repassword.value == "")
{
alert("Please enter Repeat password.");
return false;
}

if ( document.register_from.idcode.value == "")
{
alert("Please enter Personal ID Code.");
return false;
}

if ( document.register_from.email.value == "")
{
alert("Please enter E-mail address.");
return false;
}

if ( document.register_from.question.value == "")
{
alert("Please enter Secret question.");
return false;
}

if ( document.register_from.answer.value == "")
{
alert("Please enter Secret answer.");
return false;
}

if ( document.register_from.country.value == "null")
{
alert("Please select Country.");
return false;
}

if ( document.register_from.verifyinput2.value == "")
{
alert("Please enter Verify input.");
return false;
}

//return false;
document.register_from.submit();
}
</script>

<table width="329" border="0" align="center" cellpadding="0" cellspacing="8">
 <tr>
   <td scope="row"><div align="center">
       <? 	if (isset($_POST["registration"]))
                              {
                                       include("includes/character.class.php");
                                       option::register();
                                     } 
                           ?>
   </div></td>
 </tr>
</table>
<table width="331" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <td><div align="center">
       <? 
				  //error_reporting(E_ALL ^E_NOTICE ^E_WARNING);
				  if($_GET['terms'] == 'agree'){ echo '<form action="index.php?op=register&terms=agree" method="post" name="register_from" id="register_from">
                   <table align=center  width="293" border="0" cellspacing="2" cellpadding="2">
                     <tr>
                       <td width="106"><div align="right" class="normal_text_white">Account ID</div></td>
                       <td colspan="4"><div align="left">
                           <input name="account" type="text" class="post" id="account" size="14" maxlength="10">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Password</div></td>
                       <td colspan="4"><div align="left">
                           <input name="password" type="password" class="post" id="password" size="14" maxlength="10">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Repeat Password</div></td>
                       <td colspan="4"><div align="left">
                           <input name="repassword" type="password" class="post" id="repassword" size="14" maxlength="10">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Personal ID Code </div>
                           <div align="right"></div></td>
                       <td colspan="4"><div align="left">
                           <input name="idcode" type="text" id="idcode" size="14" maxlength="12">
                       <font size="1">(12 digits 0->9)</font> </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">E-Mail Address</div></td>
                       <td colspan="4"><div align="left">
                           <input name="email" type="text" class="post" id="email" size="17" maxlength="50">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Secret Question</div></td>
                       <td colspan="4"><div align="left">
                           <input name="question" type="text" class="post" id="question" size="17" maxlength="10">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Secret Answer</div></td>
                       <td colspan="4"><div align="left">
                           <input name="answer" type="text" class="post" id="answer" size="17" maxlength="10">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Country</div></td>
                       <td colspan="4"><div align="left">
                           <select name="country"  class="select" id="country">
                             <option value="null">Please select a country</option>
                             <option value="Albania">Albania</option>
                             <option value="Algeria">Algeria</option>
                             <option value="Angola">Angola</option>
                             <option value="Argentina">Argentina</option>
                             <option value="Armenia">Armenia</option>
                             <option value="Australia">Australia</option>
                             <option value="Austria">Austria</option>
                             <option value="Azerbaijan">Azerbaijan</option>
                             <option value="Bahamas">Bahamas</option>
                             <option value="Bahrain">Bahrain</option>
                             <option value="Bangladesh">Bangladesh</option>
                             <option value="Belarus">Belarus</option>
                             <option value="Belgium">Belgium</option>
                             <option value="Bolivia">Bolivia</option>
                             <option value="Botswana">Botswana</option>
                             <option value="Brazil">Brazil</option>
                             <option value="Brunei">Brunei</option>
                             <option value="Bulgaria">Bulgaria</option>
                             <option value="Burkina+Faso">Burkina Faso</option>
                             <option value="Cameroon">Cameroon</option>
                             <option value="Canada">Canada</option>
                             <option value="Chile">Chile</option>
                             <option value="China">China</option>
                             <option value="Colombia">Colombia</option>
                             <option value="Congo+(Brazzaville)">Congo (Brazzaville)</option>
                             <option value="Congo+DR">Congo DR</option>
                             <option value="Costa+Rica">Costa Rica</option>
                             <option value="Cote+dIvoire">Cote dIvoire</option>
                             <option value="Croatia">Croatia</option>
                             <option value="Cuba">Cuba</option>
                             <option value="Cyprus">Cyprus</option>
                             <option value="Czech+Republic">Czech Republic</option>
                             <option value="Denmark">Denmark</option>
                             <option value="Dominican+Republic">Dominican Republic</option>
                             <option value="Ecuador">Ecuador</option>
                             <option value="Egypt">Egypt</option>
                             <option value="El+Salvador">El Salvador</option>
                             <option value="Estonia">Estonia</option>
                             <option value="Ethiopia">Ethiopia</option>
                             <option value="Finland">Finland</option>
                             <option value="France">France</option>
                             <option value="Gabon">Gabon</option>
                             <option value="Gambia">Gambia</option>
                             <option value="Germany">Germany</option>
                             <option value="Ghana">Ghana</option>
                             <option value="Greece">Greece</option>
                             <option value="Guatemala">Guatemala</option>
                             <option value="Guinea">Guinea</option>
                             <option value="Guinea-Bissau">Guinea-Bissau</option>
                             <option value="Guyana">Guyana</option>
                             <option value="Haiti">Haiti</option>
                             <option value="Honduras">Honduras</option>
                             <option value="Hong+Kong">Hong Kong</option>
                             <option value="Hungary">Hungary</option>
                             <option value="Iceland">Iceland</option>
                             <option value="India">India</option>
                             <option value="Indonesia">Indonesia</option>
                             <option value="Iran">Iran</option>
                             <option value="Iraq">Iraq</option>
                             <option value="Ireland">Ireland</option>
                             <option value="Israel">Israel</option>
                             <option value="Italy">Italy</option>
                             <option value="Jamaica">Jamaica</option>
                             <option value="Japan">Japan</option>
                             <option value="Jordan">Jordan</option>
                             <option value="Kazakstan">Kazakstan</option>
                             <option value="Kenya">Kenya</option>
                             <option value="Korea%2c+DPR">Korea, DPR</option>
                             <option value="Korea%2c+South">Korea, South</option>
                             <option value="Kuwait">Kuwait</option>
                             <option value="Latvia">Latvia</option>
                             <option value="Lebanon">Lebanon</option>
                             <option value="Liberia">Liberia</option>
                             <option value="Libya">Libya</option>
                             <option value="Lithuania">Lithuania</option>
                             <option value="Luxembourg">Luxembourg</option>
                             <option value="Madagascar">Madagascar</option>
                             <option value="Malawi">Malawi</option>
                             <option value="Malaysia">Malaysia</option>
                             <option value="Mali">Mali</option>
                             <option value="Malta">Malta</option>
                             <option value="Mexico">Mexico</option>
                             <option value="Moldova">Moldova</option>
                             <option value="Mongolia">Mongolia</option>
                             <option value="Morocco">Morocco</option>
                             <option value="Mozambique">Mozambique</option>
                             <option value="Myanmar+(Burma)">Myanmar (Burma)</option>
                             <option value="Namibia">Namibia</option>
                             <option value="Netherlands">Netherlands</option>
                             <option value="New+Zealand">New Zealand</option>
                             <option value="Nicaragua">Nicaragua</option>
                             <option value="Niger">Niger</option>
                             <option value="Nigeria">Nigeria</option>
                             <option value="Norway">Norway</option>
                             <option value="Oman">Oman</option>
                             <option value="Pakistan">Pakistan</option>
                             <option value="Panama">Panama</option>
                             <option value="Papua+New+Guinea">Papua New Guinea</option>
                             <option value="Paraguay">Paraguay</option>
                             <option value="Peru">Peru</option>
                             <option value="Philippines">Philippines</option>
                             <option value="Poland">Poland</option>
                             <option value="Portugal">Portugal</option>
                             <option value="Qatar">Qatar</option>
                             <option value="Romania">Romania</option>
                             <option value="Russia">Russia</option>
                             <option value="Saudi+Arabia">Saudi Arabia</option>
                             <option value="Senegal">Senegal</option>
                             <option value="Serbia">Serbia</option>
                             <option value="Sierra+Leone">Sierra Leone</option>
                             <option value="Singapore">Singapore</option>
                             <option value="Slovakia">Slovakia</option>
                             <option value="Slovenia">Slovenia</option>
                             <option value="Somalia">Somalia</option>
                             <option value="South+Africa">South Africa</option>
                             <option value="Spain">Spain</option>
                             <option value="Sri+Lanka">Sri Lanka</option>
                             <option value="Sudan">Sudan</option>
                             <option value="Suriname">Suriname</option>
                             <option value="Sweden">Sweden</option>
                             <option value="Switzerland">Switzerland</option>
                             <option value="Syria">Syria</option>
                             <option value="Taiwan">Taiwan</option>
                             <option value="Tanzania">Tanzania</option>
                             <option value="Thailand">Thailand</option>
                             <option value="Togo">Togo</option>
                             <option value="Trinidad+%26+Tobago">Trinidad & Tobago</option>
                             <option value="Tunisia">Tunisia</option>
                             <option value="Turkey">Turkey</option>
                             <option value="Uganda">Uganda</option>
                             <option value="Ukraine">Ukraine</option>
                             <option value="United+Arab+Emirates">United Arab Emirates</option>
                             <option value="United+Kingdom">United Kingdom</option>
                             <option value="United+States">United States</option>
                             <option value="Uruguay">Uruguay</option>
                             <option value="Venezuela">Venezuela</option>
                             <option value="Vietnam">Vietnam</option>
                             <option value="Yemen">Yemen</option>
                             <option value="Zambia">Zambia</option>
                             <option value="Zimbabwe">Zimbabwe</option>
                           </select>
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Gender</div></td>
                       <td width="20"><div align="left">
                           <input name="gender" type="radio" value="male" checked>
                       </div></td>
                       <td width="35" valign="top"><div align="left" class="normal_text_white">Male </div></td>
                       <td width="20" valign="top"><div align="left">
                           <input name="gender" type="radio" value="female">
                       </div></td>
                       <td width="80" valign="top"><div align="left" class="normal_text_white">Female </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Verify Code</div></td>
                       <td colspan="4"><div align="left"><img src="includes/image_verify.php" alt="Image Verify">

                               <input name="registration" type="hidden" id="registration" value="registration">
                       </div></td>
                     </tr>
                     <tr>
                       <td><div align="right" class="normal_text_white">Verify Input</div></td>
                       <td colspan="4"><div align="left">
                           <input name="verifyinput2" type="text" class="post" id="verifyinput2" size="6" maxlength="10">
                       </div></td>
                     </tr>
                   </table>
                   <table width="161" border="0" align="center" cellpadding="0" cellspacing="4">
                     <tr>
                       <th width="95" height="43" scope="row"><div align="right">
                           <input type="submit" name="Submit" value="New Account" class="button" onclick="return check_register_form()">
                       </div></th>
                       <th width="54" scope="row"><div align="left">
                           <input type="reset" name="Reset" value="Reset" class="button">
                       </div></th>
                     </tr>
                   </table>
                   <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
                     <tr>
                       <th scope="row"> </th>
                     </tr>
 </table>
                 </form>
<table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
   <td width="395" height="37" background="images/img_mu_did-u-know.gif"><div align="center">
       <table width="220" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td><div align="left"><strong>Welcome New User</strong></div></td>
         </tr>
       </table>
   </div></td>
 </tr>
 <tr>
   <td><div align="center">
       <table width="220" border="0" cellspacing="0" cellpadding="0">
         <tr>
           <td><div align="left"><strong>Please complete the form above with the right data inorder for you to start playing in our FREE Mu Online server.</strong> </div></td>
         </tr>
       </table>
   </div></td>
 </tr>
</table>

'; } 


			  else{ include("modules/terms.php");}









			  ?>
   </div></td>
 </tr>
</table>

Edited by Llama
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...