Re: search form doesn't work fine

From: Date: Tue, 18 Dec 2001 19:37:32 +0000
Subject: Re: search form doesn't work fine
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-10995@lists.php.net to get a copy of this message
I have the same problme. i think is a bug in php.i do the follow: 1. i make one more option <option value=""></option> that i leave empty 2. in action file I verify if (!empty(SearchBySeason)) not if ($SubmitSearch) It works! -- Best regards, George Nicolae IT Manager ___________________ X-Playin - Professional Web Design www.x-playin.f2s.com "Afan Pasalic" <afan@sprout.net> wrote in message news:005701c187ee$8e02f810$311f49d1@VAIO... Me, again. Found mistake. It is PHP related: Script: if($SubmitSearch) { // Show results! } ?> <form method="post" action="<?php echo $PATH_INFO; ?>"> <b>Search by:</b><br><br> season:<br> <select name="SearchBySeason" size=1 style="font-size: 10px;"> <option value=0 SELECTED>Search by Season</option> <option value=3>Season 3</option> <option value=2>Season 2</option> <option value=1>Season 1</option> </select><br><br> or by keyword:<br> <input type=Text name=SearchByKeyword size=22><br><br> <input type="Submit" name="SubmitSearch" value="Search" style="font-size: 10px;"><br><br> </form> If you click on enter button - var $SubmitSearch doesn't get any value GOTCHA! Afan ----- Original Message ----- From: Afan Pasalic To: php-windows@lists.php.net Sent: Tuesday, December 18, 2001 12:57 PM Subject: [PHP-WIN] search form doesn't work fine Hi people, question is not 100% related to PHP but I hope somebody can help me: I created form to search through site (PHP/MySQL) but if you click enter button - nothing's happened. If you click "Search" (submit) button - script works fine. Any clue? Thanks for any help. Afan

« previous php.windows (#10995) next »