Article publié
--------------
L'article "A drop-down list for presenting a list of articles" a été
validé par George Kandalaft.
** A drop-down list for presenting a list of articles **
par Paolo le samedi 3 janvier 2004
It is easy to make a drop-down list in an HTML form which gives instant
access to the selected article.
If the URLs of the site’s articles are in the form
article.php3?id_article=123, the following code will do the trick:
<FORM ACTION="article.php3" METHOD="get"> <SELECT NAME="id_article">
<BOUCLE_menu_articles(ARTICLES) id_rubrique par titre> <OPTION
VALUE="#ID_ARTICLE">#TITRE</OPTION> </BOUCLE_menu_articles> </SELECT>
<INPUT TYPE="submit" NAME="Validate" VALUE="Go to article"> </FORM>
The criteria of the loop can be changed according to your needs. In the
example given the articles of the current section will be shown, sorted
(...)