Hi -
I've not tried this but I suspect you could use something like...
<script language="javascript">
var url = location.href;
url = url.substring(7); // strip "http://" off
var hs = url.split("/"); // split into array of [host, path, qmailadmin]
url = hs[0]; // we want the host
document.write('<input type=text size=14 name=domain value="');
document.write(url);
document.writeln('" maxlength=128>"');
</script>
You can make the domain field hidden by changing type to hidden if you dont
want users to even see the domain. Of course this will only work in a
browser capable of javascript. You should be able to insert this code into
the table entry for the domain.
Marcus
> -----Original Message-----
> From: Bill Shupp [mailto:[EMAIL PROTECTED]]
> Sent: 08 March 2001 01:11
> To: [EMAIL PROTECTED]
> Subject: Re: virtualhost in qmailadmin
>
>
> on 3/7/01 7:07 PM, Bill Shupp at [EMAIL PROTECTED] wrote:
>
> > Try this..
> >
> > In html/show_login.html, change:
> >
> > <input type=text size=14 name=domain maxlength=128>
> >
> > to: <input type=hidden size=14 name=domain value="<mymail.com>"
> > maxlength=128>
> >
> > You'll need to edit the table structure around it so that
> "Domain:" doesn't
> > show..
> >
> > Hope that works.
>
>
> But of course, this will force everyone using these HTML pages to login as
> mymail.com. If you're asking for it to be dynamic (same html for multiple
> domains), I don't know how to do that...
>
> -Bill
>
>
>