I would like to refresh the page with the updated information when the user click the SUBMIT button.
How do I do this?
<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://www.pagelocation.com/file.php/">
or
use header
Humm...not enough information. What is the user submitting and where? My first thought is just submit the form the same page. <form action="<?php print($_SERVER['SCRIPT_NAME']); ?>" method="post"> Also, the example above will just refresh the page after so long, not after the user clicks submit.
i guess i misunderstood, it was a little confusing, but wouldnt it be action=filename.php or is that server name the actual filename?
Originally posted by ps2gamer i guess i misunderstood, it was a little confusing, but wouldnt it be action=filename.php or is that server name the actual filename?
If you print the variable $_SERVER['SCRIPT_NAME'] you'll get the URI of the current script. That way you don't have to change the action for each page, PHP will do it for you. Ex: the output would be /directory/script.php
When I click the UPDATE button once, the page give me un-updated value.
WHen I click it twice, it give me the updated value.
When I click AGAIN, it gives me the un-updated value.
Why is it so??
May be you show us some of your code?