Login From a Different Website ?

Login From a Different Website ?

by arfan arfan -
Number of replies: 2
I have existing website, example www.myexistingwebsite.com.
This website build from php and mysql and user must log in to that website

In mysql i have table login with column username, password.

In www.myexistingwebsite.com, i want to make hyperlink to mymoodle website, so user doesn't need login again and can take course.

What steps must i do to make it happen ?


Average of ratings: -
In reply to arfan arfan

Re: Login From a Different Website ?

by Laurie Swezey -

You can do this by placing the following code on the website you want users to login to moodle from:

<form class="loginform" name="login" method="post"  action="http://www.mysite.com/login/index.php">
<p>Username :
<input size="10" name="username" />
</p>
<p>password :
<input size="10" name="password" />
</p>
<input name="submit" value="login" type="submit" />
</p>
</form>

In reply to Laurie Swezey

Re: Login From a Different Website ?

by Darshan N -

I am sorry but your method doesnt seem to work in my case.

I want to directly login to moodle using my website.