"Philipp Rotmann, Linksystem Muenchen" wrote:
> 
> On 08.05.01 (17:16), pp wrote:
> > > > <select name="select_ok[]">
> 
> Try name="select_ok", w/o the square brackets.  I just had a
> look at some of my code with a similar purpose ...

I can not count how many times I tried to do this.....
Looks like this:

<select name="select_ok">
<Option value="" selected>-------------

I tried with and without end </option> tag.

<?
if ($topic){
$select = mgd_list_topics($topic->id);
while($select->fetch()){
?>
<Option value="&(select.id);">&(select.name);
<? } }?>
</select>

<?
if ($action == 'modify'){
//for($i=0; $i<count($select_ok);$i++) {  

Do I really need use for?

$topics   = $select_ok;
//$topics   = 90;
with 'static' topicID it works

$name     = $article->name;
$title    = $article->title;
$abstract = $article->abstract;
$content  = $article->content;
/* $content .= 2; */
/* $content .= 2; */
$author   = $p->id;
$url      = $article->url;
$calstart = 2;
$caldays  = 2;
$icon     = $article->title;
$view     = 2;
$print    = 2;
$extra1   = $article->title;
$extra2   = "2";
$extra3   = "2";
$type     = 2;   


//$uzer = mgd_auth_midgard (pp,pp);
$prod = mgd_create_article( 0, $topics, $name, $title, $abstract,
$content,
                                    $author, $url, $calstart, $caldays,
$icon,
                                    $view, $print, $extra1, $extra2,
$extra3,
                                    $type);






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]

Reply via email to