<?php
print '<form action=/path/to/ur/script> <input type=hidden name=uname value='.$user->name.'> <input type=submit></form>';
?>