while(list($key, $val) = $_POST)
{
$$key = $val;
}
then you can do something like:
<input type=text name=blah value='$blah'>
How I did it on my page that required filling a table in from data, I used the above function but with an array from a QUERY as the source, then did
$_POST[$key] = $val;
//then in loop to output the table
echo "<input type=text name=$name value='" .$_POST[$name]. "'>\n";
like that, if the variable is blank, it outputs nothing... if its set... you have your values preset 😉