<?php
//Først litt php magi :P
$a = $_POST['a'];
$b = $_POST['b'];
?>
<form action="" method="post">
<input type="text" name ="a" value="<? echo $a; ?>">
<input type="hidden" name ="b" value="<? echo $a; ?>">
<input type="submit" name="submit" value="Goooooooooooooo!">
</form>
<?
if (isset($_POST['submit']))
{
mysql_connect("localhost", "brukernavn", "passord") or die(mysql_error());
mysql_select_db("databasenavn") or die(mysql_error());
mysql_query("INSERT INTO `databasefelt_a` (`navn`) VALUES ('$a') ") or die(mysql_error()) ;
mysql_query("INSERT INTO `databasefelt_b` (`navn`) VALUES ('$b') ") or die(mysql_error()) ;
}
mysql_close();
?>