Execute form on refresh

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DeFacto
Forum Commoner
Posts: 37
Joined: Wed Apr 23, 2008 2:30 pm

Execute form on refresh

Post 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.
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Re: Execute form on refresh

Post 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:
DeFacto
Forum Commoner
Posts: 37
Joined: Wed Apr 23, 2008 2:30 pm

Re: Execute form on refresh

Post 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.
Post Reply