Using this class found here(http://w3concepts.ch/php_dist/) and the next code you´ve got yourself a form.
print"<form method=\"get\" name=\"form1\" action=\"\" >";
$table=new html_table;
$table->set_table_parameters(0,0,0,1,3,500,0,0,0);
#set_table_parameters(center,border,cellspacing,cellpadding,columns,width,height,bgcolor,background)
#new_cell(cell_content,align,valign,width,height,bgcolor,background,rowspan,colspan)
$table->new_row(0,0,0,0);
$table->new_cell("<div class=\"content_header\">Uutiset</div>",0,0,0,0,0,0,0,"3");
$table->new_row(0,0,0,0);
$table->new_cell("<hr>",0,0,0,0,0,0,0,"3");
$table->new_row(0,0,0,0);
$table->new_cell("Aihe","default",0,0,0,0,0,0,0);
$table->new_cell("<div class=\"body\">Lähde</div>","default",0,0,0,0,0,0,0);
$table->new_cell("Valitse uutisluokka","default" ,0,0,0,0,0,0,0);
$table->new_row(0,0,0,0);
$table->new_cell("<input type=\"text\" name=\"aihe\" size=30 value=$aihe> ",0,0,0,0,0,0,0,0);
$table->new_cell("<input type=\"text\" name=\"lahde\" size=30 value=$lahde>",0,0,0,0,0,0,0,0);
$table->new_cell("<select name=\"cat\"><option selected>$cat</option><option value=KLB>Klubit</option><option value=TSK>Tanssi koulut</option><option value=BND>Yhtyet ja Bändit</option><option value=TPH>Tapahtumat</option>",0,0,0,0,0,0,0,0);
$table->new_row(0,0,0,0);
$table->new_cell("Uutisen sisältö",0,0,0,0,0,0,0,3);
$table->new_row(0,0,0,0);
$table->new_cell("<textarea name=\"news\" rows=12 cols=60>$news</textarea>",0,0,0,0,0,0,0,3);
$table->new_row("default",0,0,0);
$table->new_cell("Linkki",0,0,0,0,0,0,0,0);
$table->new_row("default",0,0,0);
$table->new_cell(" <input type=\"text\" name=\"link\" size=30 value=$link>",0,0,0,0,0,0,0,0);
$table->new_row("default",0,0,0);
$table->new_cell("<br>",0,0,0,0,0,0,0,0);
$table->new_row("default",0,0,0);
$table->new_cell(" <input type=\"submit\" name=\"Submit\" value=\"Lähetä\">\t\t<input type=\"reset\" name=\"submit2\" value=\"Peruta\">",0,0,0,0,0,0,0,0);
$table->show_table();
print"<INPUT NAME=\"id\" TYPE=Hidden Value=\"0000\" Size=\"\">
<INPUT NAME=\"date\" TYPE=Hidden Value=\" \" Size=\"\">
<INPUT NAME=\"action\" TYPE=Hidden Value=\"add\" Size=\"\">";
print"</from>";
?>
Hope this helps.
Alvarez