<?php require_once "cmsAdmin/lib/viewer_functions.php"; ?>
<?php 
// load records
  list($common_informationRecords, $common_informationMetaData) = getRecords(array(
    'tableName'   => 'common_information',
    
  ));
  $common_informationRecord = @$common_informationRecords[0]; // get first record
?>
<?php if (!@$GLOBALS['WEBSITE_MEMBERSHIP_PLUGIN']) { die("You must activate the Website Membership plugin before you can access this page."); } ?>
<?php if (!$CURRENT_USER) { websiteLogin_redirectToLogin(); } ?>
<?php

  // prepopulate form with current user values
  foreach ($CURRENT_USER as $name => $value) {
    if (array_key_exists($name, $_REQUEST)) { continue; }
    $_REQUEST[$name] = $value;
  }

  // process form
  if (@$_REQUEST['save']) {

    // error checking
    $errorsAndAlerts = "";
    if (!@$_REQUEST['first_name'])                { $errorsAndAlerts .= "You must enter your First name!<br/>\n"; }
	if (!@$_REQUEST['last_name'])                { $errorsAndAlerts .= "You must enter your Last name!<br/>\n"; }
    if (!@$_REQUEST['email'])                   { $errorsAndAlerts .= "You must enter your email!<br/>\n"; }
    else if(!isValidEmail(@$_REQUEST['email'])) { $errorsAndAlerts .= "Please enter a valid email (example: user@example.com)<br/>\n"; }
    if (!@$_REQUEST['username'])                { $errorsAndAlerts .= "You must choose a username!<br/>\n"; }
	 if (!@$_REQUEST['emergency_contact_name']) { $errorsAndAlerts .= "You must enter an emergency contact name!<br/>\n"; }
	  if (!@$_REQUEST['emergency_contact_phone'])  { $errorsAndAlerts .= "You must an emergency contact phone!<br/>\n"; }

    // new password checking
    if (@$_REQUEST['oldPassword'] || $_REQUEST['newPassword1'] || $_REQUEST['newPassword2']) {
      if (!@$_REQUEST['oldPassword'])                                 { $errorsAndAlerts .= "Please enter a value for: Current Password<br/>\n"; }
      elseif (@$_REQUEST['oldPassword'] != $CURRENT_USER['password']) { $errorsAndAlerts .= "Current password isn't correct!<br/>\n"; }
      elseif (!@$_REQUEST['newPassword1'])                            { $errorsAndAlerts .= "Please enter a value for: New Password<br/>\n"; }
      elseif (!@$_REQUEST['newPassword2'])                            { $errorsAndAlerts .= "Please enter a value for: Confirm New Password<br/>\n"; }
      elseif ($_REQUEST['newPassword1'] != $_REQUEST['newPassword2']) { $errorsAndAlerts .= "New passwords don't match!<br/>\n"; }
    }

    // check for duplicate usernames and emails
    if (@$_REQUEST['username'] != $CURRENT_USER['username']) {
      $count = mysql_select_count_from('accounts', "`username` = '".mysql_escape(@$_REQUEST['username'])."'");
      if ($count > 0 && @$_REQUEST['username']) { $errorsAndAlerts .= "That username is already in use, please choose another!<br/>\n"; }
    }
    if (@$_REQUEST['email'] != $CURRENT_USER['email']) {
      $count = mysql_select_count_from('accounts', "'".mysql_escape($_REQUEST['email'])."' IN (email, username)");
      if ($count > 0) { $errorsAndAlerts .= "That email is already in use, please choose another!<br/>\n"; }
    }

    // update user
    if (!$errorsAndAlerts) {
      mysqlStrictMode(false);   // disable Mysql strict errors for when a field isn't defined below (can be caused when fields are added later)
      if (@$_REQUEST['newPassword2']) { $CURRENT_USER['password'] = $_REQUEST['newPassword2']; } // update password
	  
	  		@$_REQUEST['first_name']=ucwords(@$_REQUEST['first_name']);
			@$_REQUEST['middle_initial']=strtoupper(@$_REQUEST['middle_initial']);
			@$_REQUEST['last_name']=ucfirst(@$_REQUEST['last_name']);			
 			@$_REQUEST['city']=ucwords(@$_REQUEST['city']);
			@$_REQUEST['state']=strtoupper(@$_REQUEST['state']);
			
	 $student_1_dob = date("Y-m-d",mktime(0,0,0,@$_REQUEST['month_1'],@$_REQUEST['day_1'],@$_REQUEST['year_1'])); 	
	  $student_2_dob = date("Y-m-d",mktime(0,0,0,@$_REQUEST['month_2'],@$_REQUEST['day_2'],@$_REQUEST['year_2'])); 
	   $student_3_dob = date("Y-m-d",mktime(0,0,0,@$_REQUEST['month_3'],@$_REQUEST['day_3'],@$_REQUEST['year_3'])); 		
      $query = "UPDATE `{$TABLE_PREFIX}accounts` SET
                      first_name         = '".mysql_escape( $_REQUEST['first_name'] )."',
					  middle_initial     = '".mysql_escape( $_REQUEST['middle_initial'] )."',
					  last_name         = '".mysql_escape( $_REQUEST['last_name'] )."',
                      email            = '".mysql_escape( $_REQUEST['email'] )."',
                      username         = '".mysql_escape( $_REQUEST['username'] )."',
                      password         = '".mysql_escape( $CURRENT_USER['password'] )."',
					  street_address         = '".mysql_escape( $_REQUEST['street_address'] )."',
					  city         = '".mysql_escape( $_REQUEST['city'] )."',
					  state         = '".mysql_escape( $_REQUEST['state'] )."',
					  zip         = '".mysql_escape( $_REQUEST['zip'] )."',
					  day_phone         = '".mysql_escape( $_REQUEST['day_phone'] )."', 
					  evening_phone         = '".mysql_escape( $_REQUEST['evening_phone'] )."', 
					  other_phone         = '".mysql_escape( $_REQUEST['other_phone'] )."',
					  
					   emergency_contact_name         = '".mysql_escape( $_REQUEST['emergency_contact_name'] )."', 
					  emergency_contact_phone         = '".mysql_escape( $_REQUEST['emergency_contact_phone'] )."',
					  
					 student_1_first_name         = '".mysql_escape( $_REQUEST['student_1_first_name'] )."',
					  student_1_m_i         = '".mysql_escape( $_REQUEST['student_1_m_i'] )."',
					  student_1_last_name         = '".mysql_escape( $_REQUEST['student_1_last_name'] )."',
					   student_1_dob      	= '".mysql_escape($student_1_dob)."', 
					  student_1_medical_conditions         = '".mysql_escape( $_REQUEST['student_1_medical_conditions'] )."',
					  student_1_competition_level         = '".mysql_escape( $_REQUEST['student_1_competition_level'] )."',
					  student_1_goals         = '".mysql_escape( $_REQUEST['student_1_goals'] )."', 
					  
					   student_2_first_name         = '".mysql_escape( $_REQUEST['student_2_first_name'] )."',
					  student_2_m_i         = '".mysql_escape( $_REQUEST['student_2_m_i'] )."',
					  student_2_last_name         = '".mysql_escape( $_REQUEST['student_2_last_name'] )."',
					    student_2_dob      	= '".mysql_escape($student_2_dob)."', 
					  student_2_medical_conditions         = '".mysql_escape( $_REQUEST['student_2_medical_conditions'] )."',
					  student_2_competition_level         = '".mysql_escape( $_REQUEST['student_2_competition_level'] )."',
					  student_2_goals         = '".mysql_escape( $_REQUEST['student_2_goals'] )."', 
					  
					  
					   student_3_first_name         = '".mysql_escape( $_REQUEST['student_3_first_name'] )."',
					  student_3_m_i         = '".mysql_escape( $_REQUEST['student_3_m_i'] )."',
					  student_3_last_name         = '".mysql_escape( $_REQUEST['student_3_last_name'] )."',
					   student_3_dob      	= '".mysql_escape($student_3_dob)."', 
					  student_3_medical_conditions         = '".mysql_escape( $_REQUEST['student_3_medical_conditions'] )."',
					  student_3_competition_level         = '".mysql_escape( $_REQUEST['student_3_competition_level'] )."',
					  student_3_goals         = '".mysql_escape( $_REQUEST['student_3_goals'] )."', 
					  
					  email            = '".mysql_escape( $_REQUEST['email'] )."',
				      web_site         = '".mysql_escape( $_REQUEST['web_site'] )."',
					  facebook         = '".mysql_escape( $_REQUEST['facebook'] )."',
					  flickr         = '".mysql_escape( $_REQUEST['flickr'] )."',
					  linkedin         = '".mysql_escape( $_REQUEST['linkedin'] )."',
					  twitter         = '".mysql_escape( $_REQUEST['twitter'] )."',
					  blog         = '".mysql_escape( $_REQUEST['blog'] )."',
					  other_social_networking_site_name         = '".mysql_escape( $_REQUEST['other_social_networking_site_name'] )."',
					  other_social_networking_site_url         = '".mysql_escape( $_REQUEST['other_social_networking_site_url'] )."',
					  updatedByUserNum = '".mysql_escape( $CURRENT_USER['num'] )."',
                      updatedDate      = NOW()
                 WHERE num = '".mysql_escape( $CURRENT_USER['num'] )."'";
      mysql_query($query) or die("MySQL Error:<br/>\n". htmlspecialchars(mysql_error()) . "\n");
      $userNum = mysql_insert_id();

      // on success
      unset($_REQUEST['oldPassword'], $_REQUEST['newPassword1'], $_REQUEST['newPassword2']); // clear password fields
      $errorsAndAlerts = "Thanks, we've updated your profile!";
    }
  }

  // delete account
  if (@$_POST['deleteAccount']) {
    if ($CURRENT_USER['isAdmin']) { die("Error: Deleting admin accounts is not permitted!"); }

    // delete uploads
    $GLOBALS['tableName'] = 'accounts';
    eraseRecordsUploads( $CURRENT_USER['num'] );

    // delete account
    $query = mysql_escapef("DELETE FROM `{$TABLE_PREFIX}accounts` WHERE num = ?", $CURRENT_USER['num']);
    mysql_query($query) or die("MySQL Error:<br/>\n". htmlspecialchars(mysql_error()) . "\n");

    // redirect to login
    websiteLogin_redirectToLogin();
  }


 
  
?>


  
<!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 NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
	
<title>A R A N M O R E&nbsp; &nbsp;A C A D E M Y&nbsp; &nbsp;O F&nbsp; &nbsp;I R I S H&nbsp; &nbsp;D A N C E</title>
	
<style type="text/css">

/* CSS for Ajax ticker*/

#ajaxticker1{
width: 900px;
height: 100px;
border: 1px ridge black;
padding: 5px;
background-color: #DAF7D9; 
text-align: center;

}

#ajaxticker1 div{ /*IE6 bug fix when text is bold and fade effect (alpha filter) is enabled. Style inner DIV with same color as outer DIV*/
background-color: #DAF7D9;
}

.someclass{ //class to apply to your scroller(s) if desired
}
/* CSS for pinning footer to bottom of screen */
#footer {
position: absolute; 
bottom: 0;
width: 100%;
font-size: 1.1em;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}
/* CSS for supersizing the background image */
* { margin: 0; padding: 0; }
	
#bg { position: fixed; top: 0; left: 0;}
.bgwidth { width: 100%; }
.bgheight { height: 100%; }
		
#page-wrap { position: relative; width: 100%; background: none;   }

/* CSS for scroll test */		
.scroll {
	font-size: .7em; font-family: Arial, Helvetica, sans-serif; color:#000000;
}

</style>
	
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">

</script>

<!-- Supersized script -->
<script>
		$(function() {   
		
			var theWindow        = $(window),
			    $bg              = $("#bg"),
			    aspectRatio      = $bg.width() / $bg.height();
			    			    		
			function resizeBg() {
				
				if ( (theWindow.width() / theWindow.height()) < aspectRatio ) {
				    $bg
				    	.removeClass()
				    	.addClass('bgheight');
				} else {
				    $bg
				    	.removeClass()
				    	.addClass('bgwidth');
				}
							
			}
			                   			
			theWindow.resize(function() {
				resizeBg();
			}).trigger("resize");
		
		});
	</script>
    
 	<!-- ajax ticker script -->   
<script src="Scripts/ajaxticker.js" type="text/javascript">

/***********************************************
* Ajax Ticker script (txt file source)- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>  
<link href="css/mywebsite.css.php" rel="stylesheet" type="text/css" media="all">
</head>

<body onload="MM_preloadImages('<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][0]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][1]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][2]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][3]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][4]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][5]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][6]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][7]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][8]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][9]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['thumbUrlPath'] ?>','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][10]['thumbUrlPath'] ?>')">

	<img src="<?php foreach ($common_informationRecord['profile_page_background_image'] as $upload): ?><?php echo $upload['urlPath'] ?><?php endforeach ?>" id="bg" alt="">
	
<div align="center"  id="page-wrap">
	 <?php foreach ($common_informationRecord['school_masthead'] as $upload): ?>
      
            <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />
        <?php endforeach ?><br />
     
      <div id="nav2">
     
          <table  align="left"  border="0" cellspacing="<?php echo $common_informationRecord['navigation_menu_spacing'] ?>" cellpadding="0">
          
  <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][0]): ?>
 <tr><td align="center" valign="top" >     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][0]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['info2'] ?>" name="Image1" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][0]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>   
      
    <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][1]): ?>
<tr><td align="center" valign="top"  >     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][1]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['info2'] ?>" name="Image2" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][1]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>     
    
 <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][2]): ?>
<tr><td align="center" valign="top" >     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][2]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['info2'] ?>" name="Image3" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][2]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>       
    
   <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][3]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][3]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['info2'] ?>" name="Image4" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][3]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>    
   
   <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][4]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][4]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['info2'] ?>" name="Image5" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][4]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>  
    <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][5]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][5]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['info2'] ?>" name="Image6" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][5]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>  
 <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][6]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][6]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['info2'] ?>" name="Image7" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][6]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>  
<?php if (@$common_informationRecord['navigation_menu_item_1_normal'][7]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][7]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['info2'] ?>" name="Image8" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][7]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>   
    <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][8]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][8]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['info2'] ?>" name="Image6" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][8]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>  
 <?php if (@$common_informationRecord['navigation_menu_item_1_normal'][9]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][9]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['info2'] ?>" name="Image7" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][9]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?>  
<?php if (@$common_informationRecord['navigation_menu_item_1_normal'][10]): ?>
<tr><td align="center" valign="top">     
<a href="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['info1'] ?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','<?php echo @$common_informationRecord['navigation_menu_item_1_hover'][10]['thumbUrlPath'] ?>',1)"><img src="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['thumbUrlPath'] ?>" alt="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['info2'] ?>" name="Image8" width="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['thumbWidth'] ?>" height="<?php echo @$common_informationRecord['navigation_menu_item_1_normal'][10]['thumbHeight'] ?>" border="0"></a>
</td></tr>
<?php endif ?> 
</table>
</div>
 <br />
 <h1><?php foreach ($common_informationRecord['students_masthead'] as $upload): ?>
      
            <img src="<?php echo $upload['thumbUrlPath3'] ?>" width="<?php echo $upload['thumbWidth3'] ?>" height="<?php echo $upload['thumbHeight3'] ?>" alt="" />
        <?php endforeach ?></h1><br />
        


 <div align="center">
                          
                             <p><span class="body-text-bold-9">Your current profile information is displayed in the fields below.<br />
                             <br />
                             To change your profile, retype the new information in the appropriate field and click &quot;Update&quot; at the bottom of the form.<br /><br />***YOU MUST BE OVER 13 YEARS OLD AND THE ADULT RESPONSIBLE***<br />
                             ***FOR STUDENTS AND PAYMENTS IN ORDER TO USE THIS FORM***<br /><br />
                             To change your password, enter your current password, enter your new password, repeat your new password, and click &quot;Update&quot; at the bottom of the form.</span><br />
                             <br />
                             <span class="body-text-bold-9">NOTE: If you've changed your user name or password, you'll no longer be logged in, and you won't be able to make any other profile changes<br />until you </span><a class="special" href="member_login.php">LOGIN AGAIN</a> <span class="body-text-bold-9">with your new credentials. <br />
                             <br />
                             If you've changed your mind and want to log out</span>&nbsp;
                              <a class='special' href='?action=logoff'>CLICK HERE</a>
                           <br />    <br />                        
                               
                           
                                 
                               <!-- EDIT PROFILE FORM -->
                               <?php if (@$errorsAndAlerts): ?>
                            
                             
                             
    <div class="heading-text-blue-13"><br/>
      <?php echo $errorsAndAlerts; ?><br/><br/>
    </div>
    <?php endif ?>
<span class="body-text-9">
    <form method="post" action="?">
      <input type="hidden" name="save" value="1" />
      
     <table border="0" width="40% "cellspacing="7" cellpadding="5">
      <tr>
          <td colspan="2" class="body-text-bold-9"> Questions? &nbsp; <a class="special" href="http://www.mywebsite.com/contact.php">CLICK HERE TO CONTACT US</a><br />
    </td>
     </tr> 
      <tr>
          <td colspan="2" class="body-text-bold-9">Change your Login Username<br />(Don't forget to write down the new one!)</td>
     </tr> 
     <tr>
          <td class="body-text-bold-9">Username</td>
      <td><input type="text" name="username" value="<?php echo htmlspecialchars(@$_REQUEST['username']); ?>" size="50" /></td>
     </tr>
   <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
      <tr>
          <td colspan="2" class="body-text-bold-9">Change your Login Password<br />(Don't forget to write down the new one!)</td>
     </tr>   
        
        <tr>
          <td class="body-text-bold-9">Current Password (**must be blank unless you're changing your password**)</td>
      <td><input type="password" name="oldPassword" value="<?php echo htmlspecialchars(@$_REQUEST['oldPassword']); ?>" size="50" /></td>
     </tr>
        <tr>
          <td class="body-text-bold-9">New Password</td>
      <td><input type="password" name="newPassword1" value="<?php echo htmlspecialchars(@$_REQUEST['newPassword1']); ?>" size="50" /></td>
     </tr>
        <tr>
          <td class="body-text-bold-9">New Password (again)</td>
      <td><input type="password" name="newPassword2" value="<?php echo htmlspecialchars(@$_REQUEST['newPassword2']); ?>" size="50" /></td>
     </tr> 
     <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="2" class="body-text-bold-9">Change the information in your member profile</td>
       </tr>
         <tr>
         <td colspan="2" class="body-text-bold-9"><span class="body-text-bold-red-9">*</span> = Required field</td>
          </tr>
             <tr>
             <td colspan="2" class="heading-text-blue-13">Adult Information</td>
              </tr>
                                    <tr>
                                      <td width="486" class="body-text-bold-9">First Name <span class="body-text-bold-red-9">*</span></td>
        <td width="392"><input type="text" name="first_name" value="<?php echo htmlspecialchars(@$_REQUEST['first_name']); ?>" size="50" /></td>
       </tr>
       <tr>
                                                            <td class="body-text-bold-9">Middle Initial (optional)&nbsp;</td>
        <td><input type="text" name="middle_initial" value="<?php echo htmlspecialchars(@$_REQUEST['middle_initial']); ?>" MAXLENGTH="1" size="3" /></td>
       </tr>
                                    <tr>
                                      <td class="body-text-bold-9">Last Name <span class="body-text-bold-red-9">*</span></td>
        <td><input type="text" name="last_name" value="<?php echo htmlspecialchars(@$_REQUEST['last_name']); ?>" size="50" /></td>
       </tr>
        <tr>
          <td class="body-text-bold-9">Street Address</td>
      <td><input type="text" name="street_address" value="<?php echo htmlspecialchars(@$_REQUEST['street_address']); ?>" size="50" /></td>
     </tr>
     <tr>
          <td class="body-text-bold-9">City</td>
      <td><input type="text" name="city" value="<?php echo htmlspecialchars(@$_REQUEST['city']); ?>" size="50" /></td>
     </tr>
     <tr>  
          <td class="body-text-bold-9">State</td>  
      <td><input type="text" name="state" value="<?php echo htmlspecialchars(@$_REQUEST['state']); ?>" MAXLENGTH="2" size="50" /></td>  
     </tr>
     <tr>
          <td class="body-text-bold-9">Zip Code</td>
      <td><input type="text" name="zip" value="<?php echo htmlspecialchars(@$_REQUEST['zip']); ?>" MAXLENGTH="10" size="50" /></td>
     </tr>
                                                         
                                                        
                                    <tr>
                                      <td class="body-text-bold-9">Day Phone <br />
                                      (numbers only please)</td>
                                      <td><input type="text" name="day_phone" value="<?php echo htmlspecialchars(@$_REQUEST['day_phone']); ?>" MAXLENGTH="10" size="50" /></td>
                                    </tr>
                                    <tr>
                                      <td class="body-text-bold-9">Evening Phone</td>
                                      <td><input type="text" name="evening_phone" value="<?php echo htmlspecialchars(@$_REQUEST['evening_phone']); ?>" MAXLENGTH="10" size="50" /></td>
                                    </tr>
                                    <tr>
                                      <td class="body-text-bold-9">Cell Phone</td>
                                      <td><input type="text" name="other_phone" value="<?php echo htmlspecialchars(@$_REQUEST['other_phone']); ?>" MAXLENGTH="10" size="50" /></td>
                                    </tr>
                                    <tr>
                                      <td class="body-text-bold-9">Email Address <span class="body-text-bold-red-9">*</span></td>
        <td><input type="text" name="email" value="<?php echo htmlspecialchars(@$_REQUEST['email']); ?>" size="50" /></td>
       </tr>
       
                                    
                                      <tr>
                                        <td class="body-text-bold-9">Choose a temporary Username <span class="body-text-bold-red-9">*</span></td>
        <td><input type="text" name="username" value="<?php echo htmlspecialchars(@$_REQUEST['username']); ?>" size="50" /></td>
       </tr>
                                    <tr>
                                      <td colspan="2" class="heading-text-blue-13">Emergency Contact Information</td>
                                    
                                    </tr>
                                    
<tr>
<td class="body-text-bold-9">Emergency Contact Name <span class="body-text-bold-red-9">*</span></td>
<td><input type="text" name="emergency_contact_name" value="<?php echo htmlspecialchars(@$_REQUEST['emergency_contact_name']); ?>" size="50" /></td>
</tr>
       
<tr>
<td class="body-text-bold-9">Emergency Contact Phone <span class="body-text-bold-red-9">*</span></td>
<td><input type="text" name="emergency_contact_phone" value="<?php echo htmlspecialchars(@$_REQUEST['emergency_contact_phone']); ?>" MAXLENGTH="10" size="50" /></td>
</tr>
<tr>
 <td colspan="2"><span  class="heading-text-blue-13">Student 1 Information</span> <span class="body-text-bold-9">(Students must be at least <?php echo $common_informationRecord['youngest_student'] ?> years old to register)</span></td>
 </tr>
<tr>
<td class="body-text-bold-9">First Name</td>
<td><input type="text" name="student_1_first_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_1_first_name']); ?>" size="50" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Midle Initial (optional)</td>
<td><input type="text" name="student_1_m_i" value="<?php echo htmlspecialchars(@$_REQUEST['student_1_m_i']); ?>"  MAXLENGTH="1" size="3" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Last Name</td>
<td><input type="text" name="student_1_last_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_1_last_name']); ?>" size="50" /></td>
</tr>
<tr> 
     <td>Date of Birth</td> 
     <td><?php  
$lowestYear  = (date("Y") - $common_informationRecord['oldest_student']); 
$highestYear = (date("Y") - $common_informationRecord['youngest_student']);

//pre-populate date fields from the databas 
   
 $_REQUEST['month_1']=date("n",strtotime($CURRENT_USER['student_1_dob'])); 
  $_REQUEST['day_1']=date("j",strtotime($CURRENT_USER['student_1_dob'])); 
  $_REQUEST['year_1']=date("Y",strtotime($CURRENT_USER['student_1_dob'])); 
?> 
Month:  
<select name="month_1">    
  <?php foreach(range(1,12) as $month_1): ?>       
   <option value="<?php echo $month_1;?>" <?php selectedIf($month_1,@$_REQUEST['month_1']);?>><?php echo date("F",strtotime("0000-$month_1"));?></option>    
  <?php endforeach ?>    
</select> Day:    
<select name="day_1">    
  <?php foreach(range(1,31)as $day_1): ?>    
      <option value="<?php echo $day_1;?>" <?php selectedIf($day_1,@$_REQUEST['day_1']);?>><?php echo $day_1;?></option>      
  <?php endforeach ?>    
</select> Year:    
<select name="year_1">    
   <?php foreach (range($highestYear,$lowestYear) as $year_1):?>    
       <option value="<?php echo $year_1;?>" <?php selectedIf($year_1,@$_REQUEST['year_1']);?>><?php echo $year_1;?></option>    
   <?php endforeach?>    
</select>

   </tr>
<tr>
<td class="body-text-bold-9">Medical Conditions</td>
<td><input type="text" name="student_1_medical_conditions" value="<?php echo htmlspecialchars(@$_REQUEST['student_1_medical_conditions']); ?>" size="50" /></td>
</tr>


  <tr>
   <td valign="top">Student_1_competition_level</td>
   <td>
     <?php $fieldname = 'student_1_competition_level'; ?>
     <?php $idCounter = 0; ?>
     <?php foreach (getListOptions('accounts', $fieldname) as $value => $label): ?>
       <?php $id = "$fieldname." . ++$idCounter; ?>
       <input type="radio" name="<?php echo $fieldname ?>" id="<?php echo $id ?>"
             value="<?php echo htmlspecialchars($value) ?>" <?php checkedIf(@$_REQUEST[$fieldname], $value) ?> />
       <label for="<?php echo $id ?>"><?php echo htmlspecialchars($value) ?></label><br/>

     <?php endforeach ?>
   </td>
  </tr>

<tr>
<td class="body-text-bold-9">Goals</td>
<td><input type="text" name="student_1_goals" value="<?php echo htmlspecialchars(@$_REQUEST['student_1_goals']); ?>" size="50" /></td>
 </tr>
       
<tr>
<td colspan="2" class="heading-text-blue-13">Student 2 Information</td>
                                    
<tr>
<td class="body-text-bold-9">First Name</td>
<td><input type="text" name="student_2_first_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_2_first_name']); ?>" size="50" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Midle Initial (optional)</td>
<td><input type="text" name="student_2_m_i" value="<?php echo htmlspecialchars(@$_REQUEST['student_2_m_i']); ?>"  MAXLENGTH="1" size="3" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Last Name</td>
<td><input type="text" name="student_2_last_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_2_last_name']); ?>" size="50" /></td>
</tr>
<tr> 
     <td>Date of Birth</td> 
     <td><?php  

//pre-populate date fields from the databas 
 
   
 $_REQUEST['month_2']=date("n",strtotime($CURRENT_USER['student_2_dob'])); 
  $_REQUEST['day_2']=date("j",strtotime($CURRENT_USER['student_2_dob'])); 
  $_REQUEST['year_2']=date("Y",strtotime($CURRENT_USER['student_2_dob'])); 
?> 
Month:  
<select name="month_2">    
  <?php foreach(range(1,12) as $month_2): ?>       
   <option value="<?php echo $month_2;?>" <?php selectedIf($month_2,@$_REQUEST['month_2']);?>><?php echo date("F",strtotime("0000-$month_2"));?></option>    
  <?php endforeach ?>    
</select> Day:    
<select name="day_2">    
  <?php foreach(range(1,31)as $day_2): ?>    
      <option value="<?php echo $day_2;?>" <?php selectedIf($day_2,@$_REQUEST['day_2']);?>><?php echo $day_2;?></option>      
  <?php endforeach ?>    
</select> Year:    
<select name="year_2">    
     <?php foreach (range($highestYear,$lowestYear) as $year_2):?>  
       <option value="<?php echo $year_2;?>" <?php selectedIf($year_2,@$_REQUEST['year_2']);?>><?php echo $year_2;?></option>    
   <?php endforeach?>    
</select>

   </tr>
<tr>
<td class="body-text-bold-9">Medical Conditions</td>
<td><input type="text" name="student_2_medical_conditions" value="<?php echo htmlspecialchars(@$_REQUEST['student_2_medical_conditions']); ?>" size="50" /></td>
</tr>
<tr>
   <td valign="top">Current Competition Level</td>
   <td>
     <?php $fieldname = 'student_2_competition_level'; ?>
     <?php $idCounter = 0; ?>
     <?php foreach (getListOptions('accounts', $fieldname) as $value => $label): ?>
       <?php $id = "$fieldname." . ++$idCounter; ?>
       <input type="radio" name="<?php echo $fieldname ?>" id="<?php echo $id ?>"
             value="<?php echo htmlspecialchars($value) ?>" <?php checkedIf(@$_REQUEST[$fieldname], $value) ?> />
       <label for="<?php echo $id ?>"><?php echo htmlspecialchars($value) ?></label><br/>

     <?php endforeach ?>
   </td>
  </tr>

<tr>
<td class="body-text-bold-9">Goals</td>
<td><input type="text" name="student_2_goals" value="<?php echo htmlspecialchars(@$_REQUEST['student_2_goals']); ?>" size="50" /></td>
 </tr>
<tr>
<td colspan="2" class="heading-text-blue-13">Student 3 Information</td>
                                    
</tr>

<tr>
<td class="body-text-bold-9">First Name</td>
<td><input type="text" name="student_3_first_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_3_first_name']); ?>" size="50" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Midle Initial (optional)</td>
<td><input type="text" name="student_3_m_i" value="<?php echo htmlspecialchars(@$_REQUEST['student_3_m_i']); ?>" MAXLENGTH="1" size="3" /></td>
</tr>
<tr>
<td class="body-text-bold-9">Last Name</td>
<td><input type="text" name="student_3_last_name" value="<?php echo htmlspecialchars(@$_REQUEST['student_3_last_name']); ?>" size="50" /></td>
</tr>
<tr> 
     <td>Date of Birth</td> 
     <td><?php  

//pre-populate date fields from the databas 
    
 $_REQUEST['month_3']=date("n",strtotime($CURRENT_USER['student_3_dob'])); 
  $_REQUEST['day_3']=date("j",strtotime($CURRENT_USER['student_3_dob'])); 
  $_REQUEST['year_3']=date("Y",strtotime($CURRENT_USER['student_3_dob'])); 
?> 
Month:  
<select name="month_3">    
  <?php foreach(range(1,12) as $month_3): ?>       
   <option value="<?php echo $month_3;?>" <?php selectedIf($month_3,@$_REQUEST['month_3']);?>><?php echo date("F",strtotime("0000-$month_3"));?></option>    
  <?php endforeach ?>    
</select> Day:    
<select name="day_3">    
  <?php foreach(range(1,31)as $day_3): ?>    
      <option value="<?php echo $day_3;?>" <?php selectedIf($day_3,@$_REQUEST['day_3']);?>><?php echo $day_3;?></option>      
  <?php endforeach ?>    
</select> Year:    
<select name="year_3">    
     <?php foreach (range($highestYear,$lowestYear) as $year_3):?>    
       <option value="<?php echo $year_3;?>" <?php selectedIf($year_3,@$_REQUEST['year_3']);?>><?php echo $year_3;?></option>    
   <?php endforeach?>    
</select>

   </tr>
<tr>
<td class="body-text-bold-9">Medical Conditions</td>
<td><input type="text" name="student_3_medical_conditions" value="<?php echo htmlspecialchars(@$_REQUEST['student_3_medical_conditions']); ?>" size="50" /></td>
</tr>
<tr>
   <td valign="top">Current Competition Level</td>
   <td>
     <?php $fieldname = 'student_3_competition_level'; ?>
     <?php $idCounter = 0; ?>
     <?php foreach (getListOptions('accounts', $fieldname) as $value => $label): ?>
       <?php $id = "$fieldname." . ++$idCounter; ?>
       <input type="radio" name="<?php echo $fieldname ?>" id="<?php echo $id ?>"
             value="<?php echo htmlspecialchars($value) ?>" <?php checkedIf(@$_REQUEST[$fieldname], $value) ?> />
       <label for="<?php echo $id ?>"><?php echo htmlspecialchars($value) ?></label><br/>

     <?php endforeach ?>
   </td>
  </tr>

<tr>
<td class="body-text-bold-9">Goals</td>
<td><input type="text" name="student_3_goals" value="<?php echo htmlspecialchars(@$_REQUEST['student_3_goals']); ?>" size="50" /></td>
 </tr>
       
       <tr>
                                      <td colspan="2" class="heading-text-blue-13">Optional Adult Information</td>
                                    
                                    </tr>
        <tr>
              <td class="body-text-bold-9"><p>Web Site URL</p>
              </td>
                                                            <td><input type="text" name="web_site" value="<?php echo htmlspecialchars(@$_REQUEST['web_site']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Facebook URL</p>
              </td>
                                      <td><input type="text" name="facebook" value="<?php echo htmlspecialchars(@$_REQUEST['facebook']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Flickr URL</p>
              </td>
                                      <td><input type="text" name="flickr" value="<?php echo htmlspecialchars(@$_REQUEST['flickr']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Linkedin URL</p>
              </td>
                                      <td><input type="text" name="linkedin" value="<?php echo htmlspecialchars(@$_REQUEST['linkedin']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Twitter URL</p>
              </td>
                                      <td><input type="text" name="twitter" value="<?php echo htmlspecialchars(@$_REQUEST['twitter']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Other Social Networking Site Name</p>
              </td>
                                      <td><input type="text" name="other_social_networking_site_name" value="<?php echo htmlspecialchars(@$_REQUEST['other_social_networking_site_name']); ?>" size="50" /></td>
                                    </tr>
                                    <tr>
              <td class="body-text-bold-9"><p>Other Social Networking Site URL</p>
              </td>
                                      <td><input type="text" name="other_social_networking_site_url" value="<?php echo htmlspecialchars(@$_REQUEST['other_social_networking_site_url']); ?>" size="50" /></td>
                                    </tr>
      
        <tr>
          <td colspan="2" align="center">
             <br/><input class="button" type="submit" name="submit" value="Click To Update Your Information" />    </td>
     </tr>
      </table>
    </form>
    <br/>
    <!-- /EDIT PROFILE FORM -->


    
                             </span>                      
                     
                               
                                  
                                  <br /> 
    <span class="body-text-9">By submitting this form you agree to abide by all the terms and conditions of membership.</span><br />
    <a class="special" href="http://www.mywebsite.com/webterms.php">CLICK HERE TO READ OUR TERMS</a>    </div></td>
  </tr>
			</table>

  
</body>

</html>