Pages vues depuis 25/05/2001 : 109 499 704
Index du forum »» Le coin des codeurs »» Formulaire ... et adresse de réponse ...
<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>
"
Message édité par : Kit / 08-12-2006 22:19
<td width=\"100%\" height=\"30\" valign=\"middle\" align=\"right\"></td>
<td><form action=\"index.php\" input type=\"hidden\" name=\"op\" value=\"newtopic&\" 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=\"op=newtopic AND $topicid\">$topics</option>\n";
$sel = "";
}
echo "
Message édité par : Kit / 13-12-2006 16:43
$toplist = mysql_query("select topicid, topictext from topics order by topictext");
while (list($topicid, $topics) = mysql_fetch_row($toplist))
{
$opti.="<option value=\"$topicid\">$topics</option>\n";
};
echo"<form action=\"index.php?op=newtopic&topic=\" method=\"post\">
<select NAME=\"topic\"onChange='submit()'>
$opti </form>";