hello everyone,
im new here and i need help to complete a job.
the thing is:
i need a form that pulls data from database and then after the submit button it will save it to another table.
the form will have 3 selects that are connected, all of them are filled with a table info. when the first one is choosen the second one will appear and so on. also the form will have to save the text from the selects, not the value:
echo ("<option value=\"$row[cod_ano]\ " . ($ano == $row["cod_ano"]? " selected" : "" ) . "> ".$row['nome_ano'] . "</option>");
i need to save the .$row['nome_ano'] but it saves the .$row['cod_ano'], and if i change it the 2nd one doenst work.
this is getting my crazy allready...
can any1 help???
thanks.