fixed a warning and the return key submits the form properly now.
authorjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Feb 2002 23:29:45 +0000 (23:29 +0000)
committerjmunro <jmunro@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 20 Feb 2002 23:29:45 +0000 (23:29 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2486 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addrbook_search.php

index b9bedc0221d5c62de30a0302002ffd44db6cd6fe..7ac55f605d8fb3aa24ee633dc677507431557afc 100644 (file)
@@ -140,6 +140,7 @@ displayHtmlHeader();
 /* Initialize vars */
 if (!isset($query)) { $query = ''; }
 if (!isset($show))  { $show  = ''; }
+if (!isset($backend)) { $backend = ''; }
 
 /* Choose correct colors for top and bottom frame */
 if ($show == 'form' && !isset($listall)) {
@@ -166,7 +167,7 @@ $abook = addressbook_init();
 
 /* Create search form */
 if ($show == 'form' && empty($listall)) {
-    echo '<FORM NAME=sform TARGET=abookres ACTION="' . $PHP_SELF .
+    echo '<FORM NAME=sform TARGET=abookres ACTION="addrbook_search.php'. 
          '" METHOD="POST">' . "\n" .
          '<TABLE BORDER="0" WIDTH="100%" HEIGHT="100%">' .
          '<TR><TD NOWRAP VALIGN=middle align=left width=10%>' . "\n" .