Results 1 to 5 of 5

Thread: Login in a diferent site

  1. #1
    Join Date
    Apr 2006
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Login in a diferent site

    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:

    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??

  2. #2
    Join Date
    Nov 2006
    Location
    90 miles north of Las Vegas
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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...

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    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.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    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.
    - Mike

  5. #5
    Join Date
    Aug 2006
    Location
    Ohio
    Posts
    266
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.
    Thanks DD, you saved me countless times

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •