Formular <select> ueberpruefen

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Formular <select> ueberpruefen

    servus leute,

    braeucht mal ein wenig Hilfe und zwar will ich den ausgewaehlten Inhalt von einem select menue ueberpruefen und was ausgeben!

    Ich schreibe grad eine Art Buchungssystem bei dem man Geraete "sperren" kann...
    Auf der Seite wo man dann bucht is ein Formular mit select option und wenn man in da ein gesperrtes Geraet auswaehlt soll neber dem select menue eine Information stehen das des Geraet gesperrt is...

    habt ihr ne idee wie ich des machen kann ohne die Seite neu aufzurufen ?

    PHP-Code:
    echo " <form name='tstest' action='$PHP_SELF' method=post>"
    echo 
    " <table width='100%'> "
    echo 
    " <tr>"
    echo 
    " <td width='150px'> Your name :</td>"
    echo 
    " <td><label for='name'size='23'>$user<label></td>"
    echo 
    " </tr>"
    echo 
    " <tr>"
    echo 
    " <td width='150px'>Device :</td>"
    echo 
    " <td> <SELECT NAME='GID' style='width: 175px;'>
    <OPTION SELECTED;'>"

    $res =mysql_query("SELECT * FROM Geraete"); 
    $num=mysql_num_rows($res); 
    for(
    $i=0$i<$num$i++ ){ 
    $GName=mysql_result($res,$i,'Name'); 
    $GID=mysql_result($res,$i,'GID'); 
    echo
    "<option>$GID $GName";     

    echo
    "</SELECT></td>";
     echo 
    " </tr>"
    echo 
    " <tr>";
    echo 
    " <td width='150px'>Start date :</td>"
    echo 
    " <td ><input name='Dvon' size='23'>
    <a href='javascript:cal11.popup();'>
    <img src='img/cal.gif' border='0'  style='padding-left:5px;' width='16' height='16' alt='Click Here to Pick up the date'></a>
    </input></td>"
    ; echo " </tr>"
    echo 
    " <tr>"
    echo 
    " <td width='150px'>End date : </td>"
    echo 
    " <td ><input type='text' name='Dbis' size='23' ><a href='javascript:cal12.popup();'>
    <img src='img/cal.gif' border='0' style='padding-left:5px;' width='16' height='16' alt='Click Here to Pick up the date'>
    </a></input></td>"

    echo 
    " </tr>"
    echo 
    " <tr>"
    echo 
    " <td width='150px'>Use for : </td>"
    echo 
    " <td ><textarea name='Verwendung' rows=3 cols=20 ></textarea></td>"
    echo 
    " </tr>"
    echo 
    " <tr>"
    echo 
    " <td width='150px'>Telephone nr. :</td>"
    echo 
    " <td ><input type='text' name='Tel' size='23'></input></td>"
    echo 
    " </tr>"
    echo 
    " <tr>"
    echo 
    " <td width='150px'>Place :</td>"
    echo 
    " <td ><input type='text' name='Ort' size='23'></input></td>"
    echo 
    " </tr>"
    echo 
    " <tr>";
    echo 
    " </table>"
    echo 
    " <input type='submit' name='check' value='Go' style='background:#a9cbab;'>"
    echo 
    " </form>"; } 

  • #2
    Re: Formular &lt;select&gt; ueberpruefen

    Original geschrieben von YAT
    ohne die Seite neu aufzurufen?
    JavaScript!

    Kommentar


    • #3
      nja javascript kann ich nicht... >.<

      hast du vllt. n gutes tutorial ? waer cool =P

      Kommentar


      • #4
        Original geschrieben von YAT
        hast du vllt. n gutes tutorial?
        Ich gebe ab an Kropff.

        http://www.peterkropff.de/site/javas...javascript.htm

        Kommentar


        • #5
          hehe cool !

          Dankeschoen =)

          Kommentar

          Lädt...
          X