Sainthax
06-20-2002, 11:45 PM
anyone know how to create a form that has a text box where a user can enter their domain name and then click submit, when the form is submited it adds /webmail to the URL. To to bring up their webmail page for that domain?
I've been fooling with this and I can't seem to figure it out.
DefiantPc
06-21-2002, 12:02 AM
Here are two forms the first should work for you.
Hope this helps.
<table border="1" bordercolor="#d8d6d1" cellpadding="2" width="230">
<tbody>
<form name="mailform">
<tr>
<td align="middle" colspan="2">
<font class="Verdana-11pxb"><small>Enter your password <br>to administer your e-mail</small></font></td>
</tr>
<tr>
<td align="middle" colspan="2">
<input type="password" name="pw"></td>
</tr>
<tr>
<td align="middle" colspan="2">
<input type="button" value="Enter"
onclick="window.location.href='http://'+mailform.pw.value+'/webmail';"></form>
Ours is actually a sub domain... hhtp://webmail.domname.com
Here is the form for that:
<form name="myform">
<table border="1" bordercolor="#d8d6d1" cellpadding="2" width="230">
<tbody>
<tr>
<td align="middle" colspan="2"><font class="Verdana-11pxb"><small>Enter your domain name<br>to proceed to E-mail login.</small></font></td>
</tr>
<tr>
<td align="middle" colspan="2">www.<input type="domainname" name="dn"></td>
</tr>
<tr>
<td align="middle" colspan="2"><input type="button" value="Enter"
onclick="window.location.href='http://webmail.'+myform.dn.value;">
</td></tr>
</form>
Sainthax
06-21-2002, 12:48 AM
the first one works perfect for me
thanks alot :)