Jump to content

Recommended Posts

im making a reg page all is working minus security image it appears but cant get it to say if its correct or incorrect please help codes are below.

Sorry for them being big

index.htm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CoLegendz - Sign up - CoLegendz.Com</title>
<link href="css/game_style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/public.js"></script>
<script type="text/javascript" language="javascript" src="js/tabs.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-impromptu.js"></script>
<link rel="SHORTCUT ICON" href="../images/favicon.ico">


<style type="text/css">
.reg_main td span{ font-weight:normal; color:#BB080C}
.checktips{padding:0 !important; padding:12px 0; display:block}
.btn_send{ width:95px; height:29px; background:url(image/send2.gif) no-repeat; font-size:14px; font-weight:bold; color:#fff; line-height:27px; text-align:center;}
</style>

</head>
<body>
<!--header before-->


<!--header end-->
<!--all before-->
<div class="all_bg">
  <div id="all">
    <!--register before-->
    <div class="register">
      <div class="speakbox3">Welcome to <strong>CoLegendz</strong>. Wanna be a part of this amazing world? <br>Please fill out the form below to be an inhabitant of CoLegendz. <br />
      Items with * are necessary.</div>

      <div class="npc_2"></div>
      <div class="tree_4"></div>
      <div class="tree_5"></div>
      <div class="regbox">
        <div class="regbox_t">
          <div class="regbox_b">
	<form action="register_do.php" method="POST">
              <div class="reg_main">


  <table width="796" border="0" cellspacing="0" cellpadding="0">
                 
    			 <tr>
				<td class="listtitle" colspan="2" width="464" height="21">
				<strong><font size="3" color="#CC0000">  Part One - Account Information</font></strong>
				</td>
					</tr>


                    <tr>
    			  <td width="220" valign="top" class="align_r"> </td>     
                    </tr>


			  <tr>
                    <td width="220" valign="top" class="align_r">*Account ID:</td>
                    <td colspan="2" width="275"> <input name="txtAccount" type="text" maxlength="70" class="input_3"  id="txtAccount" onpropertychange="checkinvalidchars(document.all.txtAccount);" style="ime-mode:disabled;" />
<a href="check.php" onclick="window.open('check.php', '_blank', 'width=300,height=150,left= 470,top= 300,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); return false;"> <input type="button" value="Check"></a> <span id="txtAccount_info"></span> </a>
		  </td>
                    </tr>



          <tr>
   	        <td width="220" valign="top" class="align_r">*Password:</td>
        <td colspan="2" width="275"> <input name="txtPassword" type="password" maxlength="14" class="input_3"  id="txtPassword" onpropertychange="checkinvalidchars(document.all.txtPassword);" style="ime-mode:disabled;" /> <span id="txtPassword_info"></span>
          </td>
          </tr>



	    <tr>
   	        <td width="220" valign="top" class="align_r">*Confirm Password:</td>
        <td colspan="2" width="275"> <input name="txtConfirmPassword" type="password" maxlength="14" class="input_3"  id="txtConfirmPassword" onpropertychange="checkinvalidchars(document.all.txtConfirmPassword);" style="ime-mode:disabled;" />
                    <span id="txtConfirmPassword_info"></span>
          </td>
          </tr>



	    <tr>
   	        <td width="220" valign="top" class="align_r">*E-mail Address:</td>
        <td colspan="2" width="275"> <input name="txtEmail" type="text" maxlength="40" class="input_3"  id="txtEmail" onpropertychange="checkinvalidchars(document.all.txtEmail);" style="ime-mode:disabled;" />
                    <span id="txtEmail_info"></span>
          </td>
          </tr>

                    

    <tr>
   	        <td width="220" valign="top" class="align_r">*Verify E-mail Address:</td>
        <td colspan="2" width="275"> <input name="txtConfirmEmail" type="text" maxlength="40" class="input_3"  id="txtConfirmEmail" onpropertychange="checkinvalidchars(document.all.txtConfirmEmail);" style="ime-mode:disabled;" />
                    <span id="txtConfirmEmail_info"></span>
          </td>
          </tr>
            




                    <tr>
    			  <td width="220" valign="top" class="align_r"> </td>     
                    </tr>

<tr>
				<td class="listtitle" colspan="2" width="464" height="21">
				<strong><font size="3" color="#CC0000">  Part Two - Contact Data</font></strong>
				</td>
					</tr>


     	                        
                    <tr>
    			  <td width="220" valign="top" class="align_r"> </td>     
                    </tr>
        

                   <tr>
   	        <td width="220" valign="top" class="align_r">*Security Question:</td>
          <td align="left" colspan="2">
          <select name="selectQuestion" id="selectQuestion">
    <option selected="selected" value="Please Select">Please Select</option>
    <option value="What city were you born in?">What city were you born in?</option>
    <option value="Who is your favorite person?">Who is your favorite person?</option>
    <option value="What was your nickname?">What was your nickname?</option>
    <option value="What's your favorite food?">What's your favorite food?</option>
     	    <option value="What was your first pet'name?">What was your first pet'name?</option>
    <option value="Who is your super hero?">Who is your super hero?</option>
    <option value="What is your favorite sport?">What is your favorite sport?</option>
    <option value="Who was your first teacher?">Who was your first teacher?</option>
    <option value="What is your hobby?">What is your hobby?</option>
    <option value="What was your first job?">What was your first job?</option>
     	    </select>
          <span id="txtQuestion_info"></span>
          </td>
          </tr>



    <tr>
   	        <td width="220" valign="top" class="align_r">*Answer:</td>
        <td colspan="2" width="275"> <input name="txtAnswer" type="text" maxlength="30" class="input_3"  id="txtAnswer" onpropertychange="checkinvalidchars(document.all.txtAnswer);" style="ime-mode:disabled;" />
                    <span id="txtAnswer_info"></span>
          </td>
          </tr>



    <tr>
   	        <td width="220" valign="top" class="align_r">*Real Name:</td>
          <td align="left"><input name="txtRealName" type="text" maxlength="12" class="input_3" id="txtRealName" class="font01" onpropertychange="checkinvalidchars(document.all.txtRealName);" style="ime-mode:disabled;" />
          <span id="txtRealName_info"></span>
          </td>
          </tr>



    <tr>
   	        <td width="220" valign="top" class="align_r">*Gender:</td>
          <td align="left"><span id="rabl_sex"><input id="rabl_sex_Male" type="radio" name="rabl_sex" value="Male" checked="checked" /><label for="rabl_sex_Male">Male</label><input id="rabl_sex_Female" type="radio" name="rabl_sex" value="Female" /><label for="rabl_sex_Female">Female</label></span>
          <span id="Label2"></span>
          </td>
          </tr>



          <tr>
   	        <td width="220" valign="top" class="align_r">*Date of Birth:</td>
          <td align="left" valign="top" colspan="2" class="style61">
          <input name="txt_day" type="text" value="DD" maxlength="2" id="txt_day" size="2" />
          <input name="txt_month" type="text" value="MM" maxlength="2" id="txt_month" size="2" />
          <input name="txt_year" type="text" value="19" maxlength="4" id="txt_year" size="4" />
          </td>
          </tr>

                

    <tr>
   	        <td width="220" valign="top" class="align_r">*Telephone Number:</td>
          <td align="left" class="style6"><input name="txt_teltphone" type="text" maxlength="20" class="input_3" id="txt_teltphone" class="font01" onpropertychange="checkinvalidchars(document.all.txt_teltphone);" style="ime-mode:disabled;" />
          <span id="txt_teltphone_info"></span>
          </td>
          </tr>



                   <tr>
   	        <td width="220" valign="top" class="align_r">*Residence Country:</td>
          <td align="left" colspan="2">
          <select name="selectCountry" id="selectCountry">
    <option selected="selected" value="Please Select">Please Select</option>

            <option value="Afghanistan">Afghanistan</option>
	<option value="Albania">Albania</option>
	<option value="Algeria">Algeria</option>
	<option value="American Samoa">American Samoa</option>
	<option value="Andorra">Andorra</option>
	<option value="Angola">Angola</option>

	<option value="Anguilla">Anguilla</option>
	<option value="Antarctica">Antarctica</option>
	<option value="Antigua & Barbuda">Antigua & Barbuda</option>
	<option value="Argentina">Argentina</option>
	<option value="Armenia">Armenia</option>

	<option value="Aruba">Aruba</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="Barbados">Barbados</option>
	<option value="Belarus">Belarus</option>
	<option value="Belgium">Belgium</option>
	<option value="Belize">Belize</option>
	<option value="Benin">Benin</option>

	<option value="Bermuda">Bermuda</option>
	<option value="Bhutan">Bhutan</option>
	<option value="Bolivia">Bolivia</option>
	<option value="Bosnia & Herzegowina">Bosnia & Herzegowina</option>
	<option value="Botswana">Botswana</option>

	<option value="Bouvet Island">Bouvet Island</option>
	<option value="Brazil">Brazil</option>
	<option value="British Indian Ocean Territory">British Indian Ocean Territory</option>
	<option value="Brunei Darussalam">Brunei Darussalam</option>
	<option value="Bulgaria">Bulgaria</option>
	<option value="Burkina Faso">Burkina Faso</option>

	<option value="Burma">Burma</option>
	<option value="Burundi">Burundi</option>
	<option value="Byelorussia">Byelorussia</option>
	<option value="Cambodia">Cambodia</option>
	<option value="Cameroon">Cameroon</option>
	<option value="Canada">Canada</option>

	<option value="Cape Verde">Cape Verde</option>
	<option value="Cayman Islands">Cayman Islands</option>
	<option value="Central African Republic">Central African Republic</option>
	<option value="Chad">Chad</option>
	<option value="Chili">Chili</option>
	<option value="China">China</option>

	<option value="Christmas Island">Christmas Island</option>
	<option value="Cocos Islands">Cocos (Keeling) Islands</option>
	<option value="Colombia">Colombia</option>
	<option value="Comoros">Comoros</option>
	<option value="Congo">Congo</option>
	<option value="Cook Islands">Cook Islands</option>

	<option value="Costa Rica">Costa Rica</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="Czechoslovakia">Czechoslovakia</option>

	<option value="Denmark">Denmark</option>
	<option value="Djibouti">Djibouti</option>
	<option value="Dominica">Dominica</option>
	<option value="Dominican Republic">Dominican Republic</option>
	<option value="East Timor">East Timor</option>
	<option value="Ecuador">Ecuador</option>

	<option value="Egypt">Egypt</option>
	<option value="El Salvador">El Salvador</option>
	<option value="Equatorial Guinea">Equatorial Guinea</option>
	<option value="Eritrea">Eritrea</option>
	<option value="Estonia">Estonia</option>
	<option value="Ethiopia">Ethiopia</option>

	<option value="European Community">European Community</option>
	<option value="Falkland Islands">Falkland Islands</option>
	<option value="Faroe Islands">Faroe Islands</option>
	<option value="Fiji Islands">Fiji Islands</option>
	<option value="Finland">Finland</option>
	<option value="France">France</option>

	<option value="France, Metropolitan">France, Metropolitan</option>
	<option value="French Guiana">French Guiana</option>
	<option value="French Polynesia">French Polynesia</option>
	<option value="French Southern and ntarctic Territories">French Southern and Antarctic Territories</option>
	<option value="Gabon">Gabon</option>
	<option value="Gambia">Gambia</option>

	<option value="Georgia">Georgia</option>
	<option value="Germany">Germany</option>
	<option value="Ghana">Ghana</option>
	<option value="Gibraltar">Gibraltar</option>
	<option value="Greece">Greece</option>
	<option value="Greenland">Greenland</option>

	<option value="Grenada">Grenada</option>
	<option value="Guadeloupe">Guadeloupe</option>
	<option value="Guam">Guam</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="Heard and McDonald Islands">Heard and McDonald Islands</option>
	<option value="Holy See">Holy See (Vatican City State)</option>
	<option value="Honduras">Honduras</option>
	<option value="Hong Kong">Hong Kong</option>

	<option value="Hrvatska">Hrvatska</option>
	<option value="Hungary">Hungary</option>
	<option value="Iceland">Iceland</option>
	<option value="India">India</option>
	<option value="Indonesia">Indonesia</option>
	<option value="Iran, Islamic Republic of">Iran, Islamic Republic of</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="Kampuchea">Kampuchea</option>
	<option value="Kazakhstan">Kazakhstan</option>
	<option value="Kenya">Kenya</option>
	<option value="Kiribati">Kiribati</option>
	<option value="Korea">Korea</option>

	<option value="Kuwait">Kuwait</option>
	<option value="Kyrgyzstan">Kyrgyzstan</option>
	<option value="Laos">Laos</option>
	<option value="Latvia">Latvia</option>
	<option value="Lebanon">Lebanon</option>
	<option value="Lesotho">Lesotho</option>

	<option value="Liberia">Liberia</option>
	<option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya</option>
	<option value="Liechtenstein">Liechtenstein</option>
	<option value="Lithuania">Lithuania</option>
	<option value="Luxembourg">Luxembourg</option>
	<option value="Macao">Macao (also spelled Macau)</option>

	<option value="Macedonia">Macedonia</option>
	<option value="Madagascar">Madagascar</option>
	<option value="Malawi">Malawi</option>
	<option value="Malaysia">Malaysia</option>
	<option value="Maldives">Maldives</option>
	<option value="Mali">Mali</option>

	<option value="Malta">Malta</option>
	<option value="Malvinas">Malvinas</option>
	<option value="Marshall Islands">Marshall Islands</option>
	<option value="Martinique">Martinique</option>
	<option value="Mauritania">Mauritania</option>
	<option value="Mauritius">Mauritius</option>

	<option value="Mayotte">Mayotte</option>
	<option value="Mexico">Mexico</option>
	<option value="Micronesia">Micronesia</option>
	<option value="Moldova,Republic of">Moldova, Republic of</option>
	<option value="Monaco">Monaco</option>
	<option value="Mongolia">Mongolia</option>

	<option value="Montserrat">Montserrat</option>
	<option value="Morocco">Morocco</option>
	<option value="Mozambique">Mozambique</option>
	<option value="Myanmar">Myanmar (formerly Burma)</option>
	<option value="Namibia">Namibia</option>
	<option value="Nauru">Nauru</option>

	<option value="Nepal">Nepal</option>
	<option value="Netherlands">Netherlands</option>
	<option value="Netherlands Antilles">Netherlands Antilles</option>
	<option value="New Caledonia">New Caledonia</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="Niue">Niue</option>
	<option value="Norfolk Island">Norfolk Island</option>
	<option value="Northern Mariana Islands">Northern Mariana Islands</option>
	<option value="Norway">Norway</option>

	<option value="Oman">Oman</option>
	<option value="Pakistan">Pakistan</option>
	<option value="Palau">Palau</option>
	<option value="Panama">Panama</option>
	<option value="Papua ew Guinea">Papua New Guinea</option>
	<option value="Paraguay">Paraguay</option>

	<option value="Peru">Peru</option>
	<option value="Philippines">Philippines</option>
	<option value="Pitcairn Island">Pitcairn Island</option>
	<option value="Poland">Poland</option>
	<option value="Portugal">Portugal</option>
	<option value="Puerto Rico">Puerto Rico</option>

	<option value="Qatar">Qatar</option>
	<option value="Romania">Romania</option>
	<option value="Runion">Runion</option>
	<option value="Russian Federation">Russian Federation</option>
	<option value="Rwanda">Rwanda</option>
	<option value="Saint">Saint</option>

	<option value="Saint Kitts and Nevis">Saint Kitts (Christopher) and Nevis</option>
	<option value="Saint Lucia">Saint Lucia</option>
	<option value="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option>
	<option value="Samoa">Samoa</option>
	<option value="San Marino">San Marino</option>
	<option value="Saudi Arabia">Saudi Arabia</option>

	<option value="Senegal">Senegal</option>
	<option value="Seychelles">Seychelles</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="Solomon Islands">Solomon Islands</option>
	<option value="Somalia">Somalia</option>
	<option value="South Africa">South Africa</option>
	<option value="South Georgia and the South Sandwich Islands">South Georgia and the South Sandwich Islands</option>
	<option value="Spain">Spain</option>
	<option value="Sri Lanka">Sri Lanka</option>

	<option value="St">St</option>
	<option value="St Helena">St Helena</option>
	<option value="St Pierre and Miquelon">St Pierre and Miquelon</option>
	<option value="Sudan">Sudan</option>
	<option value="Suriname">Suriname</option>
	<option value="Svalbard and Jan Mayen Islands">Svalbard and Jan Mayen Islands</option>

	<option value="Swaziland">Swaziland</option>
	<option value="Sweden">Sweden</option>
	<option value="Switzerland">Switzerland</option>
	<option value="Syrian Arab Republic">Syrian Arab Republic</option>
	<option value="Taiwan, Province of China">Taiwan, Province of China</option>
	<option value="Tajikistan">Tajikistan</option>

	<option value="Tanzania, United Republic of">Tanzania, United Republic of</option>
	<option value="Thailand">Thailand</option>
	<option value="Timor">Timor</option>
	<option value="Togo">Togo</option>
	<option value="Tokelau">Tokelau</option>
	<option value="Tonga">Tonga</option>

	<option value="Trinidad and Tobago">Trinidad and Tobago</option>
	<option value="Tunisia">Tunisia</option>
	<option value="Turkey">Turkey</option>
	<option value="Turkmenistan">Turkmenistan</option>
	<option value="Turks and Caicos Islands">Turks and Caicos Islands</option>
	<option value="Tuvalu">Tuvalu</option>

	<option value="Uganda">Uganda</option>
	<option value="Ukraine">Ukraine</option>
	<option value="Union of Soviet Socialist Republics">Union of Soviet Socialist Republics</option>
	<option value="United Arab Emirates">United Arab Emirates</option>
	<option value="UK">UK</option>
	<option value="United States">United States</option>

	<option value="United States Minor Outlying Islands">United States Minor Outlying Islands</option>
	<option value="Uruguay">Uruguay</option>
	<option value="Uzbekistan">Uzbekistan</option>
	<option value="Vanautu">Vanautu</option>
	<option value="Vatican City State">Vatican City State</option>
	<option value="Venezuela">Venezuela</option>

	<option value="Viet Nam">Viet Nam</option>
	<option value="Virgin Islands">Virgin Islands (British)</option>
	<option value="Virgin Islands (US)">Virgin Islands (US)</option>
	<option value="Wallis and Futuna Islands">Wallis and Futuna Islands</option>
	<option value="West Africa">West Africa</option>
	<option value="Western Sahara">Western Sahara</option>

	<option value="Yemen ">Yemen (unified North and South) </option>
	<option value="Yugoslavia">Yugoslavia</option>
	<option value="Zambia">Zambia</option>
	<option value="Zimbabwe">Zimbabwe</option>

     	    </select>
          <span id="selectCountry_info"></span>
          </td>
          </tr>



          <tr>
   	    <td width="220" valign="top" class="align_r">*City:</td>
          <td align="left"><input name="txt_address" type="text" maxlength="502" class="input_3" id="txt_address" class="font01" />
          </td>
          </tr>

<tr>
   	        <td width="220" valign="top" class="align_r">*Security Image:</td>
        <td colspan="2" width="275"> <input type="text" name="code" id="code" class="input_3" value="" />
          </td>
          </tr>
         
<tr>
          <td width="220" valign="top" class="align_r"> </td>
        <td colspan="2" width="275"> <img src="security-image.php" width="184" height="75" alt="Security Image" />
          </td>
          </tr>




          <tr>
          <td width="220" valign="top" class="align_r"> </td>
          </tr>



        <tr>
          <td width="440" valign="top" class="align_r" colspan="2">
            <center>If you have trouble registering a CoLegendz Account, please email us at <a href="mailto:service@colegendz.com">service@colegendz.com</a></center>
            </td>       
          </tr>

        <tr>
          <td width="440" valign="top" class="align_r" colspan="2">
<center> <label><input type="checkbox" name="tos_accept" value="true" onclick="if(this.checked){this.form.submit.disabled=false;}
else{this.form.submit.disabled=true;}"> 
           <span class="stylered1">I Agree.</span></center>
            </td>       
          </tr>


        <tr>
          <td width="440" valign="top" class="align_r" colspan="2">
            <center>By selecting the "I Agree" button, you indicate <br>
                            that you have read and understand the <a href="read.htm" target="_blank">User Agreements</a> and <a href="forum.htm" target="_blank">Forum Rules</a> of CoLegendz.</center>
            </td>       
          </tr>

     	     </table>

                <div class="clear"></div>

              </div>
              <div class="reg_btm">
<label><button type="submit" name="submit" value="Register" disabled>Register</button></label>

              </div>
              <br /><br />
            </form>
          </div>

        </div>
      </div>
    </div>
    <!--register end-->
  </div>
</div>
<!--all end-->
<!--footer before-->
<div id="footer">
  <div class="wapper">
    <script type="text/javascript">accountsFooter()</script>

  </div>
</div>
<script language="javascript" src="AjaxScript/common_js.js"></script>
      <script language="javascript" src="AjaxScript/main_ajax.js"></script>
      <script language="javascript" src="AjaxScript/common_checkvalid.js"></script>
      <script language="javascript" src="AjaxScript/Reg_check.js"></script>

<!--footer end-->
</body>
</html>

 

 

register_do.php

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CoLegendz - Sign up - CoLegendz.Com</title>
<link href="css/game_style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="js/public.js"></script>
<script type="text/javascript" language="javascript" src="js/tabs.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery-impromptu.js"></script>

<style type="text/css">
.reg_main td span{ font-weight:normal; color:#BB080C}
.checktips{padding:0 !important; padding:12px 0; display:block}
.btn_send{ width:95px; height:29px; background:url(image/send2.gif) no-repeat; font-size:14px; font-weight:bold; color:#fff; line-height:27px; text-align:center;}
</style>
</head>
<body>
<!--header before-->


<!--header end-->
<!--all before-->
<div class="all_bg">
  <div id="all">
    <!--register before-->
    <div class="register">
      <div class="speakbox3">Welcome to <strong>CoLegendz</strong>. Wanna be a part of this amazing world? <br>Please fill out the form below to be an inhabitant of CoLegendz. <br />
      Items with * are necessary.</div>

      <div class="npc_2"></div>
      <div class="tree_4"></div>
      <div class="regbox">
        <div class="regbox_t">
          <div class="regbox_b">
	              <div class="reg_main">

                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
<?php

/* Store user details */
$txtAccount = $_POST['txtAccount'];
$txtPassword = $_POST['txtPassword'];
$txtConfirmPassword = $_POST['txtConfirmPassword'];
$txtEmail = $_POST['txtEmail'];
$txtConfirmEmail = $_POST['txtConfirmEmail'];
$selectQuestion = $_POST['selectQuestion'];
$txtAnswer = $_POST['txtAnswer'];
$txtRealName = $_POST['txtRealName'];
$rabl_sex = $_POST['rabl_sex'];
$txt_month = $_POST['txt_month'];
$txt_day = $_POST['txt_day'];
$txt_year = $_POST['txt_year'];
$txt_teltphone = $_POST['txt_teltphone'];
$selectCountry = $_POST['selectCountry'];
$txt_address = $_POST['txt_address'];
$reg_date = $_POST['regdate'];
$code = $_POST['code'];


include('config.php');
$sel = 'SELECT * FROM account WHERE name="'.$_POST['txtAccount'].'"';

if($txtAccount == ""){
echo '<center>No account filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();

if(strtoupper($_POST['code']) != $_SESSION['code']) {
echo 'You have entered a wrong Security code, Please try again!';
exit();

}if(mysql_num_rows(mysql_query($sel)) >= 1 ){
echo '<center>This account already exists!</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();

}elseif($txtPassword == ""){
echo '<center>No password filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtConfirmPassword == ""){
echo '<center>No password filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtPassword != $txtConfirmPassword){
echo '<center>The Passwords did not match.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();



}elseif($selectQuestion == "Please Select"){
echo '<center>Select a Security Question.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();


}elseif($txt_day == "DD"){
echo '<center>Enter your day of birth.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_month == "MM"){
echo '<center>Enter your month of birth.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_year == "19"){
echo '<center>Enter your year of birth.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();


}elseif($txtEmail == ""){
echo '<center>Email not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtConfirmEmail == ""){
echo '<center>Email not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtEmail != $txtConfirmEmail){
echo '<center>The emails did not match.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($selectQuestion == ""){
echo '<center>Secret Question not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtAnswer == ""){
echo '<center>Answers not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txtRealName == ""){
echo '<center>Real Name not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($rabl_sex == ""){
echo '<center>Sex Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_month == ""){
echo '<center>Birth Month Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_day == ""){
echo '<center>Birth Day Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_year == ""){
echo '<center>Birth Year Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_teltphone == ""){
echo '<center>Telephone Number Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();


}elseif($selectCountry == "Please Select"){
echo '<center>Select your Country.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();

}elseif($selectCountry == ""){
echo '<center>Country Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();
}elseif($txt_address == ""){
echo '<center>City Not not filled in.</center>';
echo '<center><a href="../reg">Back</a></center>';
exit();





}else{
$reg_ip = $_SERVER['REMOTE_ADDR'];
$reg_date=date("Y-m-d h-m-s");
$d = 'INSERT INTO account (name, password, email, realname, secretquestion, answer, sex, month, day, year, telephone, country, city, reg_date, reg_ip) VALUES ("'.$txtAccount.'", "'.$txtPassword.'" , "'.$txtEmail.'", "'.$txtRealName.'", "'.$selectQuestion.'", "'.$txtAnswer.'", "'.$rabl_sex.'", "'.$txt_month.'", "'.$txt_day.'", "'.$txt_year.'", "'.$txt_teltphone.'", "'.$selectCountry.'", "'.$txt_address.'" , "'.$reg_date.'" , "'.$reg_ip.'")';
mysql_query($d) OR die (mysql_error());

echo '<center>Congratulations, you have got a CoLegendz account. Now you need to download a game client to start playing.</center><br>';
echo "<center>Your Account ID is: <b>$txtAccount</b></center>";
echo '<center>Password: 	********</center>';
echo "<center>Security Question: <b>$selectQuestion</b></center>";
echo '<center>Answer: 	********</center>';
echo "<center>Real Name: <b>$txtRealName</b></center>";
echo "<center>Gender: <b>$rabl_sex</b></center>";
echo "<center>Date of Birth: <b>$txt_day-$txt_month-$txt_year</b></center>";
echo "<center>Telephone Number: <b>$txt_teltphone</b></center>";
echo "<center>Residence Country: <b>$selectCountry</b></center>";
echo "<center>City: <b>$txt_address</b></center><br>";
echo '<center>This information is confidential, and vital to your account security.</center>';
echo '<center>Please do not share it with others, or you may have problems  retrieving your account if you lose it.</center><br>';

}
?>
                  </tr>   
                </table>
                <div class="clear"></div>

        
          </div>

        </div>
      </div>
    </div>
    <!--register end-->
  </div>
</div>
<!--all end-->
<!--footer before-->
<div id="footer">
  <div class="wapper">
    <script type="text/javascript">accountsFooter()</script>

  </div>
</div>
<!--footer end-->
</body>
</html>

 

please help

Link to comment
https://forums.phpfreaks.com/topic/163115-little-question/
Share on other sites

The posted code does not contain a session_start() at all and certainly not as the first thing on the form processing page, so it would be impossible for $_SESSION['code'] to exist and contain the value of the code put into the security image.

 

Are you developing and debugging this code on a system with error_reporting set to E_ALL and display_errors set to ON in your php.ini so that you would get immediate feedback due to problems that php finds?

Link to comment
https://forums.phpfreaks.com/topic/163115-little-question/#findComment-860608
Share on other sites

The current error means that php reached the end of your file while it was still expecting code. This is usually caused by mismatched {}, but it can be caused by any php syntax that has an opening element that is not closed, such as a quoted string that is missing a closing quote.

 

You need to go through your code and make sure that each { has a corresponding }

Link to comment
https://forums.phpfreaks.com/topic/163115-little-question/#findComment-860637
Share on other sites

The current error means that php reached the end of your file while it was still expecting code. This is usually caused by mismatched {}, but it can be caused by any php syntax that has an opening element that is not closed, such as a quoted string that is missing a closing quote.

 

You need to go through your code and make sure that each { has a corresponding }

 

so does anyone know how to get the script to see if inputted text is the same as image

Link to comment
https://forums.phpfreaks.com/topic/163115-little-question/#findComment-860638
Share on other sites

You do know that a parse error means that your code does not even execute?

 

You need to fix the parse error, then any other errors that are reported, including the one that says that $_SESSION['code'] is undefined because of the session_start() problem that was previously pointed out to you.

Link to comment
https://forums.phpfreaks.com/topic/163115-little-question/#findComment-860643
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.