compu: Formularproblem

Beitrag lesen

Hier ist das Formular:
***********************

<table width="160" border="1" cellspacing="0" cellpadding="0" bordercolor="#FF0000">
<form name="plzsuche" method="post" action="links.php">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td>PLZ-Bereich:</td>
        </tr>
        <tr>
          <td>
            <input type="text" name="plzmin" size="5" maxlength="5">-
            <input type="text" name="plzmax" size="5" maxlength="5">
            <br>
            <input type="submit" name="Submit" value="OK">
          </td>
        </tr>
      </table>
    </td>
  </tr>
  </form>
</table>

Hier ist der korrigierte Test:
*************************
       if(isset($kategorie) || isset($_POST['plzmin'])){
           if (isset($_POST['plzmin'])){
               $sql = "SELECT * FROM links
                      WHERE (kategorie='$kategorie')
                      AND   (plz > ".$_POST['plzmin'].")
                      AND   (plz < ".$_POST['plzmax'].")
                      ORDER BY plz ASC";
           }

Es ist natürlich keine Schleife. Da habe ich Blödsinn geschrieben.
Funzt aber immer noch nicht.
Die plz in der mysql sind als varchar gespeichert. Geht doch oder?

Danke!!!!!!!!!!!!!!!!!!!