From: Tomas K. <to...@us...> - 2004-05-31 13:05:18
|
> Hello all, > after a long time i write to mailling list that i want to change my own > login page. > I see that i need to add 3-4 lines in login.php but every time when i > added it i recive error. > What i trying to make: > -------- > First define array $domains > $domains = ("first.net","second.net","other.com"); > After this i add these lines: > html_tag( 'tr', > html_tag( 'td', > addSelect( "mailserv",$domains, "-1", TRUE))) . "\n" . > html_tag( 'tr', > without last line etc. > in file redirect.php i added line: > $login_username = $login_username."@".$mailserv; > > Every time i recive error, i see sorce code of sq for help how to use > AddSelect but unable to understad. > Do any body can help me to add this in lofin.php to user can select in > what domain to logging in. If you have added only one line into redirect.php, $mailserv variable is not extracted from POST variables. addSelect function is part of squirrelmail functions/forms.php. It is included only in 1.4.3cvs and 1.5.1cvs. Some comments that explain usage of this function are included in that file. Why are you using negative number in order to set default value? Your array data does not have such key. arrays are created with $name=array(some..array..data). without it your code can't be parsed. -- Tomas |