I have a form which updates a MySQL database. This form uses an image to submit the form (code below).
The name of the form is 'UpdateForm'

<input style="padding:0px; margin:0px; margin-top:10px; border:none;" type="image" hspace="0" vspace="0" border="0" name="Update" id="Update" value="Update" alt="Update" src="images/UpdateButton.png"  />

I would like to change this to use an <a> tag so I can use css to style. I have done this on other pages but for some reason I cannot get this to work on this page. The other pages are just querying the DB, but this one is updating the DB. I am not sure if that is the issue? The code on other pages is below.

<a name="Update" id="Update" value="Update" class="button submit orange" href="#" onclick="document.forms['UpdateForm'].submit();" >Update Details</a>

Can someone please advise why this form will not update the DB when I change the submit from a <input type="image"> to an <a> that it will not process the form.

Please help!

Recommended Answers

Hi,
Can you able to change the ID and name of the both tags and check? Because ID of input and <a> link are the same. and make sure that <form> name and id will be 'UpdateForm'. Please check and let me know.

Thanks,
Ajay

Jump to Post

@Ajay, the id of the <input> and the <a> being the same shouldn't be an issue. If I'm understanding OP correctly, the <a> is supposed to replace the <input>, so there will not be duplication.

@OP: The value attribute is not valid in an anchor tag, though I don't think …

Jump to Post

All 8 Replies

Hi,
Can you able to change the ID and name of the both tags and check? Because ID of input and <a> link are the same. and make sure that <form> name and id will be 'UpdateForm'. Please check and let me know.

Thanks,
Ajay

@Ajay, the id of the <input> and the <a> being the same shouldn't be an issue. If I'm understanding OP correctly, the <a> is supposed to replace the <input>, so there will not be duplication.

@OP: The value attribute is not valid in an anchor tag, though I don't think that's your main issue here. If you could show more code from the form, that might help.

Hi,
Can you give me complete form code so, I will check from my side.

Thanks,
Ajay

The form is as follows...

<form method="post" name="WAATKUpdateForm" id="WAATKUpdateForm" >
      <h1>Your Profile</h1>
      <table class="WAATKDataTable" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <th>Password:</th>
          <td><span id="sprypassword1">
          <input name="UserPassword" type="password" class="WAATKTextField" id="UserPassword" onblur="if (document.getElementById('passwordServerValidation')) document.getElementById('passwordServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserPassword"):$row_WAATKusers['UserPassword']) ?>" size="32"/>
          <span class="passwordRequiredMsg">A value is required.</span><span class="passwordMinCharsMsg">Minimum number of characters not met.</span><span class="passwordInvalidStrengthMsg">The password doesn't meet the specified strength.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "1" . ",") !== false || "1" == "") || (strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "2" . ",") !== false || "2" == "") || (strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "3" . ",") !== false || "3" == ""))  {
    if (!(false))  {
?>
              <span class="textfieldServerError" id="passwordServerValidation">
              <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "1" . ",") !== false || "1" == ""))  {
    if (!(false))  {
?>
                Your password must be at least 6 characters long.
                <?php //WAFV_Conditional users_Profile.php usersProfile(3:)
    }
  }
}?>
              <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "2" . ",") !== false || "2" == "") || (strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "3" . ",") !== false || "3" == ""))  {
    if (!(false))  {
?>
                Your password
                must contain at least one number and one letter.
                <?php //WAFV_Conditional users_Profile.php usersProfile(2,3:)
    }
  }
}?>
              </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(1,2,3:)
    }
  }
}?></td>
        </tr>
        <tr>
          <th class="WADADataTableHeader">First Name:</th>
          <td class="WADADataTableCell"><span id="sprytextfield1">
            <input name="UserFirstName" type="text" class="WAATKTextField" id="UserFirstName" onblur="if (document.getElementById('firstNameServerValidation')) document.getElementById('firstNameServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserFirstName"):$row_WAATKusers['UserFirstName']) ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "4" . ",") !== false || "4" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="firstNameServerValidation">
                  Please enter a first name.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(4:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Last Name:</th>
          <td class="WADADataTableCell"><span id="sprytextfield2">
            <input name="UserLastName" type="text" class="WAATKTextField" id="UserLastName" onblur="if (document.getElementById('lastNameServerValidation')) document.getElementById('lastNameServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserLastName"):$row_WAATKusers['UserLastName']) ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "5" . ",") !== false || "5" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="lastNameServerValidation">
              Please enter a last name.
              </span>
            <?php //WAFV_Conditional users_Profile.php usersProfile(5:)
    }
  }
}?></td>
        </tr>
        <tr>
          <th class="WADADataTableHeader">Company  Name:</th>
          <td class="WADADataTableCell"><span id="sprytextfield8">
            <input name="UserCompanyName" type="text" class="WAATKTextField" id="UserCompanyName" onblur="if (document.getElementById('companyNameServerValidation')) document.getElementById('companyNameServerValidation').style.display='none'" value="<?php echo $row_WAATKusers['UserCompany']; ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "5" . ",") !== false || "5" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="companyNameServerValidation"> Please enter a company name. </span>
            <?php //WAFV_Conditional users_Profile.php usersProfile(5:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Phone Number:</th>
          <td class="WADADataTableCell"><span id="sprytextfield3">
            <input name="UserPhone" type="text" class="WAATKTextField" id="UserPhone" onblur="if (document.getElementById('PhoneServerValidation')) document.getElementById('PhoneServerValidation').style.display='none';WAValidatePN(document.forms[0].UserPhone,'- Invalid phone number',false,true,'',document.forms[0].UserPhone,0,true)" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserPhone"):$row_WAATKusers['UserPhone']) ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "6" . ",") !== false || "6" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="PhoneServerValidation">
              Please enter a phone number.
              </span>
            <?php //WAFV_Conditional users_Profile.php usersProfile(6:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Fax:</th>
          <td class="WADADataTableCell"><span id="sprytextfield4">
          <input name="UserFax" type="text" class="WAATKTextField" id="UserFax" onblur="if (document.getElementById('faxServerValidation')) document.getElementById('faxServerValidation').style.display='none';WAValidatePN(document.forms[0].UserFax,'- Invalid phone number',false,true,'',document.forms[0].UserFax,0,true)" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserFax"):$row_WAATKusers['UserFax']) ?>" size="32" />
          <span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "7" . ",") !== false || "7" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="faxServerValidation">
                  Please enter a valid fax number.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(7:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Address:</th>
          <td class="WADADataTableCell"><span id="sprytextfield5">
            <input name="UserAddress" type="text" class="WAATKTextField" id="UserAddress" onblur="if (document.getElementById('addressServerValidation')) document.getElementById('addressServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserAddress"):$row_WAATKusers['UserAddress']) ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "8" . ",") !== false || "8" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="addressServerValidation">
                  Please enter a home billing address.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(8:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Address Line 2:</th>
          <td class="WADADataTableCell"><input type="text" class="WAATKTextField" name="UserAddress2" id="UserAddress2" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserAddress2"):$row_WAATKusers['UserAddress2']) ?>" size="32" /></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">City:</th>
          <td class="WADADataTableCell"><span id="sprytextfield6">
            <input name="UserCity" type="text" class="WAATKTextField" id="UserCity" onblur="if (document.getElementById('cityServerValidation')) document.getElementById('cityServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserCity"):$row_WAATKusers['UserCity']) ?>" size="32" />
            <span class="textfieldRequiredMsg">A value is required.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "9" . ",") !== false || "9" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="cityServerValidation">
                  Please enter a city.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(9:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">County:</th>
          <td class="WADADataTableCell"><span id="spryselect1">
            <select name="UserState" id="UserState" onblur="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" onchange="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" >
              <option value="" selected="selected" <?php if (!(strcmp("", (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Choose a County</option>
              <option value="Non-UK" <?php if (!(strcmp("Non-UK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>>- Outside the UK</option>
              <?php
do {  
?>
              <option value="<?php echo $row_Recordset1['County']?>"<?php if (!(strcmp($row_Recordset1['County'], (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>><?php echo $row_Recordset1['County']?></option>
              <?php
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
  $rows = mysql_num_rows($Recordset1);
  if($rows > 0) {
      mysql_data_seek($Recordset1, 0);
      $row_Recordset1 = mysql_fetch_assoc($Recordset1);
  }
?>
            </select>
            <span class="selectRequiredMsg">Please select an item.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "10" . ",") !== false || "10" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="stateServerValidation">
                  Please choose a state.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(10:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Post Code:</th>
          <td class="WADADataTableCell"><span id="sprytextfield7">
          <input name="UserZip" type="text" class="WAATKTextField" id="UserZip" onblur="if (document.getElementById('postalServerValidation')) document.getElementById('postalServerValidation').style.display='none'" value="<?php echo(isset($_GET['valid'])?ValidatedField("usersProfile","UserZip"):$row_WAATKusers['UserZip']) ?>" size="32" />
          <span style="font-size:12px;"><br/>If Outside UK, Please enter '<strong>XX123XX</strong>'</span>
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldMinCharsMsg">Minimum number of characters not met.</span><span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span></span>
            <?php
if (ValidatedField("usersProfile","usersProfile"))  {
  if ((strpos((",".ValidatedField("usersProfile","usersProfile").","), "," . "11" . ",") !== false || "11" == ""))  {
    if (!(false))  {
?>
            <span class="textfieldServerError" id="postalServerValidation">
                  Please enter a zip code.
          </span>
          <?php //WAFV_Conditional users_Profile.php usersProfile(11:)
    }
  }
}?></td>
        </tr>
        <tr class="WAATKDataTable">
          <th class="WADADataTableHeader">Country:</th>
          <td class="WADADataTableCell"><span id="spryselect2">
            <select name="UserCountry" id="UserCountry" onblur="if (document.getElementById('countryServerValidation')) document.getElementById('countryServerValidation').style.display='none'" onchange="if (document.getElementById('countryServerValidation')) document.getElementById('countryServerValidation').style.display='none'" >
              <option value="" selected="selected" <?php if (!(strcmp("", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Choose a country</option>
              <option value="US" <?php if (!(strcmp("US", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>United States</option>
              <option value="GB" <?php if (!(strcmp("GB", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>United Kingdom</option>
              <option value="AF" <?php if (!(strcmp("AF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Afghanistan</option>
              <option value="AX" <?php if (!(strcmp("AX", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Aland Islands</option>
              <option value="AL" <?php if (!(strcmp("AL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Albania</option>
              <option value="DZ" <?php if (!(strcmp("DZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Algeria</option>
              <option value="AS" <?php if (!(strcmp("AS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>American Samoa</option>
              <option value="AD" <?php if (!(strcmp("AD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Andorra</option>
              <option value="AO" <?php if (!(strcmp("AO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Angola</option>
              <option value="AI" <?php if (!(strcmp("AI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Anguilla</option>
              <option value="AQ" <?php if (!(strcmp("AQ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Antarctica</option>
              <option value="AG" <?php if (!(strcmp("AG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Antigua &amp; Barbuda</option>
              <option value="AR" <?php if (!(strcmp("AR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Argentina</option>
              <option value="AM" <?php if (!(strcmp("AM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Armenia</option>
              <option value="AW" <?php if (!(strcmp("AW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Aruba</option>
              <option value="AU" <?php if (!(strcmp("AU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Australia</option>
              <option value="AT" <?php if (!(strcmp("AT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Austria</option>
              <option value="AZ" <?php if (!(strcmp("AZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Azerbaijan</option>
              <option value="BS" <?php if (!(strcmp("BS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bahamas</option>
              <option value="BH" <?php if (!(strcmp("BH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bahrain</option>
              <option value="BD" <?php if (!(strcmp("BD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bangladesh</option>
              <option value="BB" <?php if (!(strcmp("BB", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Barbados</option>
              <option value="BY" <?php if (!(strcmp("BY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Belarus</option>
              <option value="BE" <?php if (!(strcmp("BE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Belgium</option>
              <option value="BZ" <?php if (!(strcmp("BZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Belize</option>
              <option value="BJ" <?php if (!(strcmp("BJ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Benin</option>
              <option value="BM" <?php if (!(strcmp("BM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bermuda</option>
              <option value="BT" <?php if (!(strcmp("BT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bhutan</option>
              <option value="BO" <?php if (!(strcmp("BO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bolivia</option>
              <option value="BA" <?php if (!(strcmp("BA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bosnia &amp; Herzegovina</option>
              <option value="BW" <?php if (!(strcmp("BW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Botswana</option>
              <option value="BV" <?php if (!(strcmp("BV", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bouvet Island</option>
              <option value="BR" <?php if (!(strcmp("BR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Brazil</option>
              <option value="IO" <?php if (!(strcmp("IO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>British Indian Ocean Territory</option>
              <option value="BN" <?php if (!(strcmp("BN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Brunei Darussalam</option>
              <option value="BG" <?php if (!(strcmp("BG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Bulgaria</option>
              <option value="BF" <?php if (!(strcmp("BF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Burkina Faso</option>
              <option value="BI" <?php if (!(strcmp("BI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Burundi</option>
              <option value="KH" <?php if (!(strcmp("KH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cambodia</option>
              <option value="CM" <?php if (!(strcmp("CM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cameroon</option>
              <option value="CA" <?php if (!(strcmp("CA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Canada</option>
              <option value="CV" <?php if (!(strcmp("CV", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cape Verde</option>
              <option value="KY" <?php if (!(strcmp("KY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cayman Islands</option>
              <option value="CF" <?php if (!(strcmp("CF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Central African Rep</option>
              <option value="TD" <?php if (!(strcmp("TD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Chad</option>
              <option value="CL" <?php if (!(strcmp("CL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Chile</option>
              <option value="CN" <?php if (!(strcmp("CN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>China</option>
              <option value="CX" <?php if (!(strcmp("CX", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Christmas Island</option>
              <option value="CC" <?php if (!(strcmp("CC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cocos (Keeling) Islands</option>
              <option value="CO" <?php if (!(strcmp("CO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Colombia</option>
              <option value="KM" <?php if (!(strcmp("KM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Comoros</option>
              <option value="CG" <?php if (!(strcmp("CG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Congo</option>
              <option value="CK" <?php if (!(strcmp("CK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cook Islands</option>
              <option value="CR" <?php if (!(strcmp("CR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Costa Rica</option>
              <option value="CI" <?php if (!(strcmp("CI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>C&ocirc;te d'Ivoire</option>
              <option value="HR" <?php if (!(strcmp("HR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Croatia</option>
              <option value="CU" <?php if (!(strcmp("CU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cuba</option>
              <option value="CY" <?php if (!(strcmp("CY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Cyprus</option>
              <option value="CZ" <?php if (!(strcmp("CZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Czech Republic</option>
              <option value="CD" <?php if (!(strcmp("CD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Dem Rep of Congo (Zaire)</option>
              <option value="DK" <?php if (!(strcmp("DK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Denmark</option>
              <option value="DJ" <?php if (!(strcmp("DJ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Djibouti</option>
              <option value="DM" <?php if (!(strcmp("DM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Dominica</option>
              <option value="DO" <?php if (!(strcmp("DO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Dominican Republic</option>
              <option value="EC" <?php if (!(strcmp("EC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Ecuador</option>
              <option value="EG" <?php if (!(strcmp("EG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Egypt</option>
              <option value="SV" <?php if (!(strcmp("SV", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>El Salvador</option>
              <option value="GQ" <?php if (!(strcmp("GQ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Equatorial Guinea</option>
              <option value="ER" <?php if (!(strcmp("ER", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Eritrea</option>
              <option value="EE" <?php if (!(strcmp("EE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Estonia</option>
              <option value="ET" <?php if (!(strcmp("ET", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Ethiopia</option>
              <option value="FK" <?php if (!(strcmp("FK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Falkland Islands (Malvinas)</option>
              <option value="FO" <?php if (!(strcmp("FO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Faeroe Islands</option>
              <option value="FJ" <?php if (!(strcmp("FJ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Fiji</option>
              <option value="FI" <?php if (!(strcmp("FI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Finland</option>
              <option value="FR" <?php if (!(strcmp("FR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>France</option>
              <option value="GF" <?php if (!(strcmp("GF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>French Guiana</option>
              <option value="PF" <?php if (!(strcmp("PF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>French Polynesia/Tahiti</option>
              <option value="TF" <?php if (!(strcmp("TF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>French Southern Territories</option>
              <option value="GA" <?php if (!(strcmp("GA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Gabon</option>
              <option value="GM" <?php if (!(strcmp("GM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Gambia</option>
              <option value="GE" <?php if (!(strcmp("GE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Georgia</option>
              <option value="DE" <?php if (!(strcmp("DE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Germany</option>
              <option value="GH" <?php if (!(strcmp("GH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Ghana</option>
              <option value="GI" <?php if (!(strcmp("GI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Gibraltar</option>
              <option value="GR" <?php if (!(strcmp("GR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Greece</option>
              <option value="GL" <?php if (!(strcmp("GL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Greenland</option>
              <option value="GD" <?php if (!(strcmp("GD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Grenada</option>
              <option value="GP" <?php if (!(strcmp("GP", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guadeloupe</option>
              <option value="GU" <?php if (!(strcmp("GU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guam</option>
              <option value="GT" <?php if (!(strcmp("GT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guatemala</option>
              <option value="GG" <?php if (!(strcmp("GG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guernsey</option>
              <option value="GN" <?php if (!(strcmp("GN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guinea</option>
              <option value="GW" <?php if (!(strcmp("GW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guinea-Bissau</option>
              <option value="GY" <?php if (!(strcmp("GY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Guyana</option>
              <option value="HT" <?php if (!(strcmp("HT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Haiti</option>
              <option value="HM" <?php if (!(strcmp("HM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Heard Island &amp; McDonald Islands</option>
              <option value="VA" <?php if (!(strcmp("VA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Holy See (Vatican City State)</option>
              <option value="HN" <?php if (!(strcmp("HN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Honduras</option>
              <option value="HK" <?php if (!(strcmp("HK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Hong Kong</option>
              <option value="HU" <?php if (!(strcmp("HU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Hungary</option>
              <option value="IS" <?php if (!(strcmp("IS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Iceland</option>
              <option value="IN" <?php if (!(strcmp("IN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>India</option>
              <option value="ID" <?php if (!(strcmp("ID", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Indonesia</option>
              <option value="IR" <?php if (!(strcmp("IR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Iran</option>
              <option value="IQ" <?php if (!(strcmp("IQ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Iraq</option>
              <option value="IE" <?php if (!(strcmp("IE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Ireland</option>
              <option value="IM" <?php if (!(strcmp("IM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Isle of Man</option>
              <option value="IL" <?php if (!(strcmp("IL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Israel</option>
              <option value="IT" <?php if (!(strcmp("IT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Italy</option>
              <option value="CI" <?php if (!(strcmp("CI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Ivory Coast</option>
              <option value="JM" <?php if (!(strcmp("JM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Jamaica</option>
              <option value="JP" <?php if (!(strcmp("JP", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Japan</option>
              <option value="JE" <?php if (!(strcmp("JE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Jersey</option>
              <option value="JO" <?php if (!(strcmp("JO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Jordan</option>
              <option value="KZ" <?php if (!(strcmp("KZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Kazakhstan</option>
              <option value="KE" <?php if (!(strcmp("KE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Kenya</option>
              <option value="KI" <?php if (!(strcmp("KI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Kiribati</option>
              <option value="KP" <?php if (!(strcmp("KP", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Korea, Democratic Republic of</option>
              <option value="KR" <?php if (!(strcmp("KR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Korea, Republic of</option>
              <option value="KW" <?php if (!(strcmp("KW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Kuwait</option>
              <option value="KG" <?php if (!(strcmp("KG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Kyrgyzstan</option>
              <option value="LA" <?php if (!(strcmp("LA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Laos</option>
              <option value="LV" <?php if (!(strcmp("LV", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Latvia</option>
              <option value="LB" <?php if (!(strcmp("LB", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Lebanon</option>
              <option value="LS" <?php if (!(strcmp("LS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Lesotho</option>
              <option value="LR" <?php if (!(strcmp("LR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Liberia</option>
              <option value="LY" <?php if (!(strcmp("LY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Libya</option>
              <option value="LI" <?php if (!(strcmp("LI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Liechtenstein</option>
              <option value="LT" <?php if (!(strcmp("LT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Lithuania</option>
              <option value="LU" <?php if (!(strcmp("LU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Luxembourg</option>
              <option value="MO" <?php if (!(strcmp("MO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Macau</option>
              <option value="MK" <?php if (!(strcmp("MK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Macedonia</option>
              <option value="MG" <?php if (!(strcmp("MG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Madagascar</option>
              <option value="MW" <?php if (!(strcmp("MW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Malawi</option>
              <option value="MY" <?php if (!(strcmp("MY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Malaysia</option>
              <option value="MV" <?php if (!(strcmp("MV", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Maldives</option>
              <option value="ML" <?php if (!(strcmp("ML", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mali</option>
              <option value="MT" <?php if (!(strcmp("MT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Malta</option>
              <option value="MH" <?php if (!(strcmp("MH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Marshall Islands</option>
              <option value="MQ" <?php if (!(strcmp("MQ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Martinique</option>
              <option value="MR" <?php if (!(strcmp("MR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mauritania</option>
              <option value="MU" <?php if (!(strcmp("MU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mauritius</option>
              <option value="MX" <?php if (!(strcmp("MX", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mexico</option>
              <option value="FM" <?php if (!(strcmp("FM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Micronesia</option>
              <option value="MD" <?php if (!(strcmp("MD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Moldova</option>
              <option value="MC" <?php if (!(strcmp("MC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Monaco</option>
              <option value="MN" <?php if (!(strcmp("MN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mongolia</option>
              <option value="MS" <?php if (!(strcmp("MS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Montserrat</option>
              <option value="MA" <?php if (!(strcmp("MA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Morocco</option>
              <option value="MZ" <?php if (!(strcmp("MZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Mozambique</option>
              <option value="MM" <?php if (!(strcmp("MM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Myanmar</option>
              <option value="NA" <?php if (!(strcmp("NA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Namibia</option>
              <option value="NR" <?php if (!(strcmp("NR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Nauru</option>
              <option value="NP" <?php if (!(strcmp("NP", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Nepal</option>
              <option value="NL" <?php if (!(strcmp("NL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Netherlands</option>
              <option value="AN" <?php if (!(strcmp("AN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Netherlands Antilles</option>
              <option value="NC" <?php if (!(strcmp("NC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>New Caledonia</option>
              <option value="NZ" <?php if (!(strcmp("NZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>New Zealand</option>
              <option value="NI" <?php if (!(strcmp("NI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Nicaragua</option>
              <option value="NE" <?php if (!(strcmp("NE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Niger</option>
              <option value="NG" <?php if (!(strcmp("NG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Nigeria</option>
              <option value="NU" <?php if (!(strcmp("NU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Niue</option>
              <option value="NF" <?php if (!(strcmp("NF", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Norfolk Island</option>
              <option value="MP" <?php if (!(strcmp("MP", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Northern Mariana Islands</option>
              <option value="NO" <?php if (!(strcmp("NO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Norway</option>
              <option value="OM" <?php if (!(strcmp("OM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Oman</option>
              <option value="PK" <?php if (!(strcmp("PK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Pakistan</option>
              <option value="PW" <?php if (!(strcmp("PW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Palau</option>
              <option value="PS" <?php if (!(strcmp("PS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Palestinian Territory</option>
              <option value="PA" <?php if (!(strcmp("PA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Panama</option>
              <option value="PG" <?php if (!(strcmp("PG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Papua New Guinea</option>
              <option value="PY" <?php if (!(strcmp("PY", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Paraguay</option>
              <option value="PE" <?php if (!(strcmp("PE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Peru</option>
              <option value="PH" <?php if (!(strcmp("PH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Philippines</option>
              <option value="PN" <?php if (!(strcmp("PN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Pitcairn</option>
              <option value="PL" <?php if (!(strcmp("PL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Poland</option>
              <option value="PT" <?php if (!(strcmp("PT", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Portugal</option>
              <option value="PR" <?php if (!(strcmp("PR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Puerto Rico</option>
              <option value="QA" <?php if (!(strcmp("QA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Qatar</option>
              <option value="RE" <?php if (!(strcmp("RE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Reunion Is.</option>
              <option value="RO" <?php if (!(strcmp("RO", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Romania</option>
              <option value="RU" <?php if (!(strcmp("RU", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Russia</option>
              <option value="RW" <?php if (!(strcmp("RW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Rwanda</option>
              <option value="SH" <?php if (!(strcmp("SH", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saint Helena</option>
              <option value="KN" <?php if (!(strcmp("KN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saint Kitts &amp; Nevis</option>
              <option value="LC" <?php if (!(strcmp("LC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saint Lucia</option>
              <option value="PM" <?php if (!(strcmp("PM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saint Pierre &amp; Miquelon</option>
              <option value="VC" <?php if (!(strcmp("VC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saint Vincent &amp; Grenadines</option>
              <option value="AS" <?php if (!(strcmp("AS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Samoa (Amer.)</option>
              <option value="WS" <?php if (!(strcmp("WS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Samoa (Western)</option>
              <option value="SM" <?php if (!(strcmp("SM", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>San Marino</option>
              <option value="KN" <?php if (!(strcmp("KN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Sao Tome &amp; Principe</option>
              <option value="SA" <?php if (!(strcmp("SA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Saudi Arabia</option>
              <option value="SN" <?php if (!(strcmp("SN", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Senegal</option>
              <option value="CS" <?php if (!(strcmp("CS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Serbia &amp; Montenegro</option>
              <option value="SC" <?php if (!(strcmp("SC", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Seychelles</option>
              <option value="SL" <?php if (!(strcmp("SL", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Sierra Leone</option>
              <option value="SG" <?php if (!(strcmp("SG", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Singapore</option>
              <option value="SK" <?php if (!(strcmp("SK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Slovakia</option>
              <option value="SI" <?php if (!(strcmp("SI", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Slovenia</option>
              <option value="SB" <?php if (!(strcmp("SB", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Solomon Islands</option>
              <option value="ZA" <?php if (!(strcmp("ZA", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>South Africa</option>
              <option value="GS" <?php if (!(strcmp("GS", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>South Georgia &amp; S. Sandwich Islands</option>
              <option value="ES" <?php if (!(strcmp("ES", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Spain</option>
              <option value="LK" <?php if (!(strcmp("LK", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Sri Lanka</option>
              <option value="SD" <?php if (!(strcmp("SD", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Sudan</option>
              <option value="SR" <?php if (!(strcmp("SR", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Suriname</option>
              <option value="SJ" <?php if (!(strcmp("SJ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Svalbard &amp; Jan Mayen</option>
              <option value="SZ" <?php if (!(strcmp("SZ", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Swaziland</option>
              <option value="SE" <?php if (!(strcmp("SE", (isset($_GET['valid'])?ValidatedField("usersProfile","UserCountry"):$row_WAATKusers['UserCountry'])))) {echo "selected=\"selected\"";} ?>>Sweden</option>
              <option value="CH" <?php if (!(strcmp("CH", (isset($_GET['valid'])?ValidatedField("usersP

This is the php to process the form.

<?php 
// WA Application Builder Update
if (isset($_POST["Update_x"])) // Trigger
{
  $WA_connection = $localhost;
  $WA_table = "users";
  $WA_redirectURL = "recent.php";
 /* if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";*/
  $WA_keepQueryString = false;
  $WA_indexField = "UserID";
  $WA_fieldNamesStr = "UserPassword|UserFirstName|UserLastName|UserCity|UserState|UserZip|UserPhone|UserFax|UserCountry|UserAddress|UserAddress2|UserCompany";
  $WA_fieldValuesStr = "".((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"")  ."" . "|" . "".((isset($_POST["UserFirstName"]))?$_POST["UserFirstName"]:"")  ."" . "|" . "".((isset($_POST["UserLastName"]))?$_POST["UserLastName"]:"")  ."" . "|" . "".((isset($_POST["UserCity"]))?$_POST["UserCity"]:"")  ."" . "|" . "".((isset($_POST["UserState"]))?$_POST["UserState"]:"")  ."" . "|" . "".((isset($_POST["UserZip"]))?$_POST["UserZip"]:"")  ."" . "|" . "".((isset($_POST["UserPhone"]))?$_POST["UserPhone"]:"")  ."" . "|" . "".((isset($_POST["UserFax"]))?$_POST["UserFax"]:"")  ."" . "|" . "".((isset($_POST["UserCountry"]))?$_POST["UserCountry"]:"")  ."" . "|" . "".((isset($_POST["UserAddress"]))?$_POST["UserAddress"]:"")  ."" . "|" . "".((isset($_POST["UserAddress2"]))?$_POST["UserAddress2"]:"")  ."" . "|" . "".((isset($_POST["UserCompanyName"]))?$_POST["UserCompanyName"]:"")  ."";
  $WA_columnTypesStr = "',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''|',none,''";
  $WA_comparisonStr = "=|=|=|=|=|=|=|=|=|=|=|=";
  $WA_fieldNames = explode("|", $WA_fieldNamesStr);
  $WA_fieldValues = explode("|", $WA_fieldValuesStr);
  $WA_columns = explode("|", $WA_columnTypesStr);

  $WA_where_fieldValuesStr = "".$_POST['UserID']  ."";
  $WA_where_columnTypesStr = "none,none,NULL";
  $WA_where_comparisonStr = "=";
  $WA_where_fieldNames = explode("|", $WA_indexField);
  $WA_where_fieldValues = explode("|", $WA_where_fieldValuesStr);
  $WA_where_columns = explode("|", $WA_where_columnTypesStr);
  $WA_where_comparisons = explode("|", $WA_where_comparisonStr);

  $WA_connectionDB = $database_localhost;
  mysql_select_db($WA_connectionDB, $WA_connection);
  if (!session_id()) session_start();
  $updateParamsObj = WA_AB_generateInsertParams($WA_fieldNames, $WA_columns, $WA_fieldValues, -1);
  $WhereObj = WA_AB_generateWhereClause($WA_where_fieldNames, $WA_where_columns, $WA_where_fieldValues,  $WA_where_comparisons );
  $WA_Sql = "UPDATE `" . $WA_table . "` SET " . $updateParamsObj->WA_setValues . " WHERE " . $WhereObj->sqlWhereClause . "";
  $MM_editCmd = mysql_query($WA_Sql, $WA_connection) or die(mysql_error());
  if ($WA_redirectURL != "")  {
    if ($WA_keepQueryString && $WA_redirectURL != "" && isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] !== "" && sizeof($_POST) > 0) {
      $WA_redirectURL .= ((strpos($WA_redirectURL, '?') === false)?"?":"&").$_SERVER["QUERY_STRING"];
    }
    header("Location: ".$WA_redirectURL);
  }
}
?>

All works fine when I use an <input type="image">, so Why won't the form process via an <a> tag with an JS onclick action?

Thanks guys for any help.

for fix problems:
you should put javascript code in js file and php code in php files (class file with oop) and use jquery to controll all. and use comments.

I inherited this site, so just trying to 'make it look nice' to start with. Then I can look at the structure.
ANy help with the <a> link as a 'form submit' would be greatly appreciated.

Hi,

Please check the following code.

<form method="post" name="WAATKUpdateForm" id="WAATKUpdateForm" action="formprocess.php" >
  <h1>Your Profile</h1>

  <input name="UserID" type="hidden" id="WAATKUpdateRecordID" value="" />
  <!--
  <input style="padding:0px; margin:0px; margin-top:10px; border:none;" type="image" hspace="0" vspace="0" border="0" name="Update" id="Update" value="Update" alt="Update" src="images/UpdateButton.png"  />
  -->
  <a name="Update" id="Update" value="Update" class="button submit orange" href="#" onclick="document.forms['WAATKUpdateForm'].submit();" >Update Details</a>
</form>

I have update 3 changes.
1) Comment <input image tag
2) Add <a link tag and replace form name as "WAATKUpdateForm" for submit
3) In form tag add action ="formprocess.php" for testing purpose.

It is working from my side. Please check and let me know.

Thanks,
Ajay

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.