Log in

View Full Version : Login in a diferent site



pavmoxo
02-22-2007, 11:41 AM
I have a site of an university in PHP and a joomla site for university administration. Can I have a authentication form in the main site for logon the joomla site?? If yes how can I do that??...I have tried several times without success!!!

I have a the next form:

Code:


<form ID="secLogin" action="secretaria/index.php?option=com_comprofiler&task=login" target="_blank" method="post">

<p>Nome:
&nbsp;<input name="username" id="username" type="text" size="20">
<br>
Senha:
<input name="passwd" id="password" size="20" type="password">
</p>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="Reset" type="reset" value="Limpar">&nbsp;&nbsp;<input type="submit" value="Submeter" /></div>

</form>


And result say that I havenīt permissions!!! Which permissions??

Tristan S.S.
02-23-2007, 08:34 PM
What are the required tags for the joomla site? Use these in the login form on the other page so the variables post successfully and allow you access to it...

BLiZZaRD
02-23-2007, 09:52 PM
You will need your script to log into the others database first. If you can't log into the database you can't access the users tables in that database to log into and verify the tables.

you will need to get the database name, database host, database user name and password, pass those to the DB first, then submit your log in script once the database recognizes you as a user.

mburt
02-23-2007, 10:16 PM
If they use variables in the url though, it might be possible without having to connect. When you log in (on the real site), check for variables in the url that have some relation to what you typed in.

Titan85
02-24-2007, 04:31 PM
I think that you might not be able to, since some sites use random keys in their form to make sure that the submitted form is from their site and not someone trying to hack them. I personally do.