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" <[EMAIL PROTECTED]> wrote in message
005701c187ee$8e02f810$311f49d1@VAIO">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: [EMAIL PROTECTED]
  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





-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to