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 ?
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>
I am sorry but your method doesnt seem to work in my case.
I want to directly login to moodle using my website.