G. Bica wrote:

My question of the day,

I am trying to implement an Hotmail style login for SquirrelMail. My site
requires the format [EMAIL PROTECTED] as login ID. To facilitate the users I
am trying to implement a JavaScript script similar to Hotmail. I can enter
the username and the domain is filled in automatically while I type the
password.

I have a thread at
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20787568.html
forum but since this is specific to SquirrelMail, thought to ask here too.
Other SM users might have come accross this.

here is what I have so far:

changes to login.php:

$header = "<script language=\"JavaScript\" type=\"text/javascript\">\n" .
         "<!--\n".
        "  function addEmail(fObj){ \n".
        "        fObj.value = fObj.value + "@mysite.net"; \n".
        "        } \n".
         "  function squirrelmail_loginpage_onload() {\n".
...
                                   '<input type="text" name="' .
$username_form_name .'" value="' .
$loginname_value .'
onChange="addEmail(this);" />' ,
                               'left', '', 'width="*"' )

but I get a : Parse error: parse error, unexpected '@' in
.../wwwroot\webmail\src\login.php on line 58

I used \@ but that did not work. I took out @ completely, but it gave me
another error for unexpected T_STRING

Any help is appreciated.


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Have you thought about using vpopmail over at http://www.inter7.com? In combination with a database server and squirrelmail, you can setup virtual domains and logins like [EMAIL PROTECTED] without modifying squirrelmail.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to