Page 1 of 1

Execute form on refresh

Posted: Wed May 07, 2008 12:58 pm
by DeFacto
Hello all,

I need to execute form

Code: Select all

 
<form action=" ">
<input type="hidden" name="upern" value="<?php echo $name; ?>">
<input type="hidden" name="uperc" value="<?php echo $sname; ?>">
</form>
 
on refresh

Code: Select all

 
echo "<meta http-equiv=\"refresh\" content=\"0;URL=trinti.php\">";
 
Anybody help, please.

Re: Execute form on refresh

Posted: Wed May 07, 2008 3:54 pm
by kendall
I dont think you can do that but you can probably use

<script>form.submit();</script>

but you will need to embed this after the form

of course if your refreshing the form the unless there is some way you are keeping the data in the form you might be submitting blanks.... :roll:

Re: Execute form on refresh

Posted: Thu May 08, 2008 1:38 am
by DeFacto
Thanks for reply, but that do not work as i need to, anyway, i will try to change my code so that refresh would not be necessary.