Niente, neanche con le dritte che mi avete dato riesco a far funzionare la cosa... vi posto lo script della pagina...

Codice PHP:
<?php break;?> <?php case"add":?> <?php if($user->userlevel == 5): print Filter::msgInfo(lang('PROJ_NOPERM'), false); return; endif;?> <?php $ptype $content->getProjectTypes();?> <?php $userlist $user->getUserList(1);?> <?php $marcalist $content->getMarca();?> <?php $tipoapp $content->getTipoApp();?> <h1>[img]../images/projects.png[/img]<?php echo lang('PROJ_TITLE1');?></h1> <p class="info"><?php echo lang('PROJ_INFO1') . lang('REQFIELD1') . required() . lang('REQFIELD2');?></p> <div class="block-border"> <div class="block-content"> <form action="" method="post" id="admin_form" name="admin_form"> <table cellspacing="0" cellpadding="0" class="forms"> <thead> <tr> <th colspan="2" class="left"><?php echo lang('PROJ_SUB1');?></th> </tr> </thead> <tr> <tr> <th><?php echo lang('INVC_CNAME');?><?php echo required();?></th> <td><select name="client_id" class="custombox" style="width:250px"> <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option> <?php if($userlist):?> <?php foreach ($userlist as $crow):?> <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option> <?php endforeach;?> <?php unset($crow);?> <?php endif;?> </select> [url="index.php?do=clients-rip&action=add"][img]../images/client-overview.png[/img]"/>[/url] </td> </tr> <tr> <th><?php echo lang('INVC_CNAME');?><?php echo required();?></th> <td><select name="client_id" class="custombox" style="width:250px"> <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option> <?php if($userlist):?> <?php foreach ($userlist as $crow):?> <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option> <?php endforeach;?> <?php unset($crow);?> <?php endif;?> </select> </td> </tr> <tr> <th width="300"><?php echo lang('PROB_DICH');?><?php echo required();?></th> <td colspan="1"><textarea name="prob_dich" cols="20" rows="1" id="prob_dich_content"></textarea></td> </tr> <tr> <th><?php echo lang('PROJ_TYPE');?><?php echo required();?></th> <td><select name="project_type" class="custombox" style="width:250px"> <option value="">--- Select Project Type ---</option> <?php if ($ptype):?> <?php foreach ($ptype as $prow):?> <option value="<?php echo $prow->id;?>"><?php echo $prow->title;?></option> <?php endforeach;?> <?php unset($prow);?> <?php endif;?> </select></td> </tr> <tr> <th><?php echo lang('PROJ_START');?>:</th> <td><input name="start_date" type="text" class="inputbox" id="start_date" size="25" value="<?php echo date('Y-m-d');?>"/></td> </tr> <tr> <th><?php echo lang('PROJ_END');?>:</th> <td><input name="end_date" type="text" class="inputbox" id="end_date" size="25" value="<?php echo date('Y-m-d');?>"/></td> </tr> <?php /*?> <tr> <th>Billing Status:</th> <td><label for="b_status">Payment Amount:</label> <input type="text" id="b_status" style="border:0; color:#5AB814;font-weight:bold; background-color:transparent" name="b_status"/> <div id="b_status-range" style="width: 250px;margin-top:2px;margin-left:5px"></div></td> </tr> <?php */?> <tr> <th><?php echo lang('PROJ_STATUS');?>:</th> <td><label for="p_status"><?php echo lang('PROJ_COMPSTSTUS');?>:</label> <input type="text" id="p_status" style="border:0; color:#0084FF;background-color:transparent" name="p_status"/> <div id="p_status-range" style="width:250px;margin-top:2px;margin-left:5px"></div></td> </tr> <tr> <th><?php echo lang('PROJ_MANAGER');?>:</th> <td><select name="staff_id" class="custombox" style="width:250px"> <?php foreach ($user->getUserList("9' or userlevel = '5") as $srow):?> <option value="<?php echo $srow->id;?>"><?php echo $srow->name;?></option> <?php endforeach;?> <?php unset($srow);?> </select></td> </tr> <tr> <th><?php echo lang('PROJ_NOTIFY');?>:</th> <td><?php echo lang('YES');?> <input type="radio" name="notify_staff" value="1" /> <?php echo lang('NO');?> <input name="notify_staff" type="radio" value="0" checked="checked" /></td> </tr> <tr> <td><input name="submit" type="submit" value="<?php echo lang('PROJ_ADD');?>" class="button button-green"/></td> <td>[url="index.php?do=projects"]<?php echo lang('CANCEL');?>[/url]</td> </tr> </table> </form> </div> </div> <?php echo Core::doForm("processProject");?>
Nello Specifico i due form che devono essere correlati e poi salvare il risultato nel database sono
Codice PHP:
<tr> <th><?php echo lang('INVC_CNAME');?><?php echo required();?></th> <td><select name="client_id" class="custombox" style="width:250px"> <option value="">--- <?php echo lang('INVC_CLIENTSELECT');?> ---</option> <?php if($userlist):?> <?php foreach ($userlist as $crow):?> <option value="<?php echo $crow->id;?>"><?php echo $crow->name;?></option> <?php endforeach;?> <?php unset($crow);?> <?php endif;?> </select> [url="index.php?do=clients-rip&action=add"][img]../images/client-overview.png[/img]"/>[/url] </td> </tr>
Sono due campi identici, solo che uno prenderà i dati dalla tabella users, (come già fa) e il secondo prenderà i dati dalla tabella Apparecchi... salvando poi il tutto in 1 o 2 campi sul database, in modo da permettere agli operatori di vedere quali riparazioni sono associate a quel pc, oppure vedere i pc per cliente, permettendo durante l'inserimento della riparazione la scelta con i menu a tendina dell'apparecchio del cliente, precedentemente caricato nel sistema...

Riuscite a darmi una mano?