Eero af Heurlin wrote:
>
> Are you doing totally your own routines for adding articles or using
> parts of the 1.2.5 admin site ?
both of them
> ----snip----
> <form method=post action="handler.html">
> <input type=hidden name="action" value="add_article">
> Select Topic: <select name="topic">
> <option value="" selected>Pick one</option>
> <?php $topics=mgd_list_topics($root_topic);
> if ($topics) {
> while ($topics->fetch()) {
> ?><option value="&(topics.id);">&(topics.name);</option><?
> }
> } ?>
> </select>
> <input type=submit name=submit value=submit>
> </form>
looks rather like this, I changed method for get and option value
is sent correct. If my select name is 'alamakota' so
$topic = $alamakota;
for created article?
I changed:
$topic = 100;
and then it works , so code for adding articles is correct.
Piotras
_________________________
http://www.milinski.com.pl
http://www.infoglob.com
http://agaipiotras.igk.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]