Visualizzazione dei risultati da 1 a 9 su 9

Discussione: modica search

  1. #1

    modica search

    Buonasera a tutti!!!
    Sapete aiutarmi a modificare l'opzione search in testo con un menù a tendina ?

    <form name="search" onSubmit="self.location=document.search.from.value +document.search.key.value">
    <div align="center">



    <input type="hidden" name="from" value="0">
    <input type="hidden" name="more" value="<?php echo $more ?>">
    <font size="3">Cerca per tipo Es: Pippo, Pluto</font>
    </p>



    <input type="text" class="search" name="key" title="<?php echo $m_search_title; ?>" value="<?php echo $key; ?>">
    <input class="buttonsend" type="submit" value="<?php echo $m_search; ?>" name="submit" >
    </p>
    </div>
    </form>

  2. #2
    AIUTOOOOOOOOO!!!!!!!!1

  3. #3
    MA siete al mare?
    Ciao

  4. #4
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    3,259
    ma che vuoi fare esattamente?

  5. #5
    Grazieee!
    Vorrei sapere come posso sostituire lìopzione search in testo con quelllo a menù

  6. #6
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    Originariamente inviato da cassola
    Grazieee!
    Vorrei sapere come posso sostituire lìopzione search in testo con quelllo a menù
    :master: :master:


    ti spieghi meglio??
    think simple think ringo

  7. #7
    guarda questo file :
    <table width="<?php echo $table_width; ?>" align="center" cellspacing="0" border="0">
    <tr><td width="50%" align="left">
    <?php echo $m_sign; ?>
    </td>
    <td width="50%" align="right"><form name="search" onSubmit="self.location=document.search.from.value +document.search.key.value">
    <input type="hidden" name="from" value="0">
    <input type="hidden" name="more" value="<?php echo $more ?>">
    <input class="search" type="text" name="key" value="<?php echo $key; ?>" title="<?php echo $m_search_title; ?>">
    <input class="buttonsend" type="submit" value="<?php echo $m_search; ?>" >
    </form>
    </td>
    </tr>
    <?php
    #========================================
    # Guestbook messages
    #========================================

    while ($row = @mysql_fetch_object($show)) {

    echo "<tr><td colspan=\"2\" valign=\"middle\">";
    echo "<p class=\"entry1header\">$row->gb_fullname";

    if ($row->gb_location) {
    echo " ($row->gb_location) ";
    }

    if (($row->gb_sex) && ($gb_sexask == "true")) {
    echo " <img src=\"" . $gb_themepath . "gb_" . $row->gb_sex . ".gif\" align=\"middle\" border=\"0\" alt=\" ";
    if ($row->gb_sex == "female") {
    echo "$m_sex_female \">";
    } else {
    echo "$m_sex_male \">";
    }
    }

    if ($row->gb_email) {
    echo " <a href=\"mailto:$row->gb_email\" onFocus=\"if(this.blur)this.blur()\"><img src=\"$gb_themepath" . "gb_email.gif\" align=\"middle\" border=\"0\" alt=\" $m_email $row->gb_email \"></a> ";
    }

    if ($row->gb_homepage) {
    echo " <a href=\"$row->gb_homepage\" target=\"_blank\" onFocus=\"if(this.blur)this.blur()\">";
    echo "<img src=\"$gb_themepath" . "gb_homepage.gif\" align=\"middle\" border=\"0\" alt=\" $m_homepage $row->gb_homepage \"></a>";
    }
    echo "</p>";

    if ($row->gb_entry_text) {
    $gb_entry_br = str_replace("\n", "
    ", $row->gb_entry_text);
    echo "<p class=\"entry2text\">$gb_entry_br</p>";
    }

    echo "<p class=\"entry3date\">$row->gb_entry_date <a href=\"sign.php?id=$row->gb_number&todo=comment&name=$row->gb_fullname\" target=\"_self\" onFocus=\"if(this.blur)this.blur()\">";
    echo "<img src=\"" . $gb_themepath . "gb_comment.gif\" align=\"middle\" border=\"0\" alt=\" $m_comment $row->gb_fullname \"></a> ";
    echo "<a href=\"sign.php?id=$row->gb_number&todo=trash&name=$row->gb_fullname\" target=\"_self\" onFocus=\"if(this.blur)this.blur()\">";
    echo "<img src=\"" . $gb_themepath . "gb_trash.gif\" align=\"middle\" border=\"0\" alt=\" $m_trash $row->gb_fullname \"></a>°$row->gb_number</p>";

    if ($row->gb_comment_text) {
    $gb_comment_text_br = str_replace("\n", "
    ", $row->gb_comment_text);
    echo "<p class=\"comment1header\">" . $gb_commentname . "</p>";
    echo "<p class=\"comment2text\">$gb_comment_text_br</p>";
    echo "<p class=\"comment3date\">$row->gb_comment_date</p>";
    }
    echo "</td></tr>";
    }

    @mysql_close ($link);

    if ($gb_jumplinktotal < 1) {
    echo "<tr><td colspan=\"2\" valign=\"middle\">



    ";
    echo "The entry you're trying to access was either
    • deleted by the admin or
    • the phrase you searched could not be found or
    • this copy of <a href=\"http://xeoman.com\">xeobook</a> was just set up and the admin forgot to change the default url (please check that under domain [3] on the admin-page)

    Click <a href=\"index.php\" target=\"_top\">here</a> to read other entries made to this guestbook.

    </p>";
    echo "</td></tr>";
    }
    #========================================
    # Footer incl Prev/ Next-Link
    #========================================
    ?>

    <tr><td colspan="2"><p class="jumplink">
    <?php
    echo $gb_jumplink;
    ?>
    </p></td></tr>
    </table>

    IN QUESTO FILE FACCIO UNA RICERCA TRAMITE UN CAMPO DI TESTO ORA VORREI SOSTITUIRE IL CAMPO DI TESTO CON UNO A MENU INSERENDO QUINDI IO I DATI NEL MENù

  8. #8
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    questo è il campo di testo attraverso il quale fai la ricerca:

    <input class="search" type="text" name="key" value="<?php echo $key; ?>" title="<?php echo $m_search_title; ?>">



    per avere un menù a tendina (un select):

    echo "<select name=\"key\">
    <option value=\"valore 1\">opzione 1</option>
    <option value=\"valore 2\">opzione 2</option>
    <option value=\"valore 3\">opzione 3</option>
    </select>\n";



    cmq è più un problema di HTML che di PHP.
    think simple think ringo

  9. #9
    OK!!!
    MA NON RIESCO A CAPIRE IL VALORE DA INSERIRE

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.