in the first update query, $_GET['id'] has no value...
and you must connect to the database first.
if you have this $_POST variable, you can make extract...
extract($_POST);
then you reach these posted elements as $email , $www ect.
And another tip:
use the " in the form element's name.
print "<input name=\"subject\" value=\"{$res["subject"]}\">\r";
// \r will take an enter if you see it in source code.
and you did not close your form with </form>