LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2006, 12:33 PM   #1
cyberguy03
LQ Newbie
 
Registered: Mar 2006
Location: New Jersey, USA
Distribution: Fedora Core, Ubuntu, Mint
Posts: 25

Rep: Reputation: 15
Really Simple SquirrelMail problem


So on a webpage, I have (on the sidebar) two textFields for inputting the user's name and pass, as well as a button for submitting it. How do I make it send this information to SquirrelMail to authenticate?

The webmail login page is located at
'http://webmail.mydomain.com/src/login.php'

Thanks in advance.

Last edited by cyberguy03; 08-04-2006 at 12:46 PM.
 
Old 08-04-2006, 05:12 PM   #2
cyberguy03
LQ Newbie
 
Registered: Mar 2006
Location: New Jersey, USA
Distribution: Fedora Core, Ubuntu, Mint
Posts: 25

Original Poster
Rep: Reputation: 15
Once again, I have found the solution after alot of digging.

I couldn't get the form to work (it would give me errors like 'you must be logged in' or 'bad user/pass' because I forgot these to hidden fields in the form:

Code:
<input type="hidden" name="js_autodetect_results" value="0">
  	<input type="hidden" name="just_logged_in" value="1">
and I got this bit of JS from SquirrelMail's own doc:

Code:
function squirrelmail_loginpage_onload() {
  document.forms[0].js_autodetect_results.value = '1';
  for (i = 0; i < document.forms[0].elements.length; i++) {
    if (document.forms[0].elements[i].type == "text" || document.forms[0].elements[i].type == "password") {
      document.forms[0].elements[i].focus();
      break;
    }
  }
}
this you add to the head and call in the body.

Hope this can be helpful to anyone else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squirrelmail problem LinuxLover Linux - General 3 04-03-2006 04:54 PM
Squirrelmail problem ? BengtOlof Linux - Newbie 1 06-16-2005 03:01 AM
SquirrelMail problem htic22 Linux - Software 0 04-27-2004 08:46 AM
Problem with squirrelmail gallet Linux - Software 0 08-04-2003 07:09 PM
SquirrelMail Problem lelrod Linux - Software 2 02-04-2003 10:41 AM


All times are GMT -5. The time now is 02:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration