Forum » » Le coin des codeurs » » Formulaire ... et adresse de réponse ...
Posté : 19 nov. 2006 à 11:19
<td><form action=\"sections.php\" method=\"get\">
<table cellpadding=\"3\" cellspacing=\"1\" border=\"1\" align=\"left\" background=\"/themes/MK/gfx/fond_topic2.jpg\">
<td align=\"center\" class=\"ctblanco\" nowrap>";
$listrubriques = mysql_query("select rubid,rubname from rubriques order by rubname");
echo "<form> <p class=\"bord-select\" ><select NAME=\"rubric\"onChange='submit()'></p></form>" ;
echo "<option value=\"\">Recherche dans les reportages</option>\n";
while(list($rubid, $rubname) = mysql_fetch_row($listrubriques)) {
if ($rubid==$rubriques) { $sel = "selected "; }
echo "<option $sel value=\"$rubid\">$rubname</option>\n";
$sel = "";
}
echo "
</select>
</td>
"
<td width=\"100%\" height=\"30\" valign=\"middle\" align=\"right\"></td>
<td><form action=\"index.php\" method=\"get\">
<table cellpadding=\"3\" cellspacing=\"1\" border=\"1\" align=\"left\" background=\"/themes/MK/gfx/fond_topic2.jpg\">
<td align=\"center\" class=\"ctblanco\" nowrap>";
$toplist = mysql_query("select topicid, topictext from topics order by topictext");
echo "<form> <p class=\"bord-select\"><select NAME=\"topic\"onChange='submit()'></p></form>" ;
echo "<option value=\"\">Recherche dans les articles</option>\n";
while(list($topicid, $topics) = mysql_fetch_row($toplist)) {
if ($topicid==$topic) { $sel = "selected "; }
echo "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "
</select>
</td>
</table>
</form>
"
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=21520&forum=5