Yeah, that would work well.
If you want the user to stay on the same page you can put your page in a frameset with a hidden frame and have your form target that hidden frame.
<frameset>
<frame name="main" src="viewable_page.php">
<frame name="hidden" src="blank.htm">
</frameset>
<body onload="document.hidden_form.submit();">
<form name="hidden_form" action="destination.php" method="post" target="hidden">
<input type="hidden" name="whatever" value="<? echo $value ?>">
</form>
Good Luck!
-Mark Fisk - CUBEWORKS
Surojit Niyogi wrote:
what you probably want to do is populate a form with hidden variables and have a javascript document.frmName.submit() function at the end of the html page
-S