thank you a lot sarah it is a very good idea.
in the meanwhile i did this (and it seems to be a very very good way to preceed):
when i press the button i submit the data I need. in the 'press' sequence not only i submit the data but i also recall the page with window.open.
so it will be: window.open('page.php','Hello','properties')
with properties i masquerade the window doing it very little and saying: Retrieving database data...
Beside this little window there's the php code!!!
So it's a way to achieve the target i had before with a little "plus" now. And it's also usefull because the little window doesn't close before having submitted the data in the other page. (I obtain a reference to the parent window with var xxx = window.parent).
function onwinload(){
var xxx = window.opener;
xxx.test1.value = '<?php echo ("Hello"); ?>';
window.close();}
It's great because the calling window DOESN'T refresh and takes all the values that the little win sends to it in real time (also the database data that you retrieve).