Location: PHPKode > projects > DDL CMS > Upload these files to your webspace/topsites/templates/accounts_edit.tpl
<script type="text/javascript">

function checkForm(form)
{   
    if( form.Email.value.search(/^[\w\d][\w\d\,\.\-]*\@([\w\d\-]+\.)+([a-zA-Z]+)$/) == -1 )
    {
        alert("Invalid E-mail Address");
        return false;
    }


    if( form.Site_URL.value.search(/^http:\/\/[\w\d\-\.]+\.[\w\d\-\.]+/) == -1 )
    {
        alert("Invalid Site URL");
        return false;
    }
}


</script>
<!-- BEGIN BODY -->
	<table border="0" width="90%">
		<tr>
			<td align="left">
<!-- BEGIN PAGE CONTENT -->
				<form name="form" action="accounts.php" method="post" onSubmit="return checkForm(this)">
				
				<div>
				
				<h2>Edit Your Account</h2>
				
				<table>
				<tr>
				<td align="right">
				E-mail Address:
				</td>
				<td>
				<input type="text" name="Email" size="30" value="##Email##"></input>
				</td>
				</tr>
				<tr>
				<td align="right">
				Site URL:
				</td>
				<td>
				<input type="text" name="Site_URL" size="30" value="##Site_URL##"></input>
				</td>
				</tr>
				<tr>
				<td align="right">
				Site Title:
				</td>
				<td>
				<input type="text" name="Title" size="30" value="##Title##"></input><br />
				<span>##Max_Title## characters max</span>
				</td>
				</tr>
				<tr>
				<td align="right">
				New Password:
				</td>
				<td>
				<input type="text" name="New_Password" size="30"></input><br />
				<span>
				Only fill this in if you want to change your password
				</span>
				</td>
				</tr>
				<tr>
				<td>
				<br />
				<br />
				<input type="hidden" name="Run" value="EditAccount"></input>
				<!-- Do NOT remove these values -->
				<input type="hidden" name="Username" value="##Username##"></input>
				<input type="hidden" name="Password" value="##Password##"></input>
				<input type="submit" value="Update Your Account"></input>
				</td>
				</td>
				</tr>
				</table>
				
				
				<br />
				<br />
				
				</div>
				
				</form>
<!-- END PAGE CONTENT -->
			</td>
		</tr>
	</table>
<!-- END BODY -->
Return current item: DDL CMS