Alternate Login URL - Help?

Alternate Login URL - Help?

by Clemente Carlo Borja -
Number of replies: 2
Hi everyone,

I need help on how to use the "Alternate Login URL". I want to make a my own customized page with the moodle login embedded on it.

For example, my customized URL is http://mydomain.com/index.html. On this page, I would like the embed the moodle login fields (showing the username and password fields). When the authentication is confirmed, the user will be directed to http://mydomain.com/moodle.

How am I suppose to do this? I hope someone could help me. If possible please provide the neccessary codes for my html page.

Thank you very much
Average of ratings: -
In reply to Clemente Carlo Borja

ตอบ: Alternate Login URL - Help?

by Ekachai Singthong -
It's easy than you think. You just put this code in your http://mydomain.com/index.html

<form action="
http://mydomain.com/moodle/login/index.php" method="post" id="login">
<div class="loginform">
<div class="form-label"><label for="username">Username</label></div>
<div class="form-input">
<input type="text" name="username" id="username" size="15" value="admin" />

</div>
<div class="clearer"><!-- --></div>
<div class="form-label"><label for="password">Password</label></div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" />
<input type="submit" value="Login" />
<input type="hidden" name="testcookies" value="1" />
</div>

<div class="clearer"><!-- --></div>
</div>
</form>


Average of ratings: Useful (1)