Originally posted by antonio:
i just saw a really nice interface on a website. it had the login screen for webmail on the main 'domain.com' page and allowed the user to login without having to memorize a bunch of backslashes, squirrelmail, or any other extensions beyond .com. how is this done? i'd love to just type my domain name and not the extra stuff in order access my webmail. can anyone point the way as to where i would learn more about this?
thanks
Not sure what you mean, but I'll give it a shot. If I understand correctly you would like domain.com index page to have login form for the webmail, right? HTML-forms can point to "any" address, so you should just create a form that sends the data to the webmail script.
So.. The webmail (webmail.domain.com) login has a form tag like this:
<form action="auth.php">
The action attribute points to the file auth.php in the webmail.domain.com domain. To send data to auth.php from some other page, you have to point to the whole URL in the action attribute:
<form action="http://webmail.domain.com/auth.php">
By having submitting a form with this action should let you login from another page. Just be sure to have identical fields (just copy the login form webmail.domain.com to be sure).
Hope this helps.