Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-04-2006, 11:33 AM   #1
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

Thanks in advance.

Last edited by cyberguy03; 08-04-2006 at 11:46 AM.
Old 08-04-2006, 04:12 PM   #2
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:

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

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") {
this you add to the head and call in the body.

Hope this can be helpful to anyone else.


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 03:54 PM
Squirrelmail problem ? BengtOlof Linux - Newbie 1 06-16-2005 02:01 AM
SquirrelMail problem htic22 Linux - Software 0 04-27-2004 07:46 AM
Problem with squirrelmail gallet Linux - Software 0 08-04-2003 06:09 PM
SquirrelMail Problem lelrod Linux - Software 2 02-04-2003 09:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

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