View Single Post
Old Apr 27th, 2007, 1:43 AM   #19
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
You're right Styx, I apologize for my previous post it was indeed mistaken. I was trying to emulate somethign I do on my own forum software and just realized that the reason it doesn't work is because I have an intermediate page that redirects to where I need to go. This does work, but you're right about pressing back on the browser and stuff:[php]<?php
if(isset($_GET['foo'])){
echo 'Some new database stuff';
echo '<a href="form.php">Update Records</a>';
}elseif(isset($_POST['foo'])){
// Process the form
echo '<html>';
echo '<head>';
echo '<meta http-equiv="refresh" content="0;url=form.php?foo=1">';
echo '</head>';
echo '<body>';
echo 'Redirecting';
echo '</body>';
echo '</html>';
}else{
echo 'Some old database stuff';
echo '<form method="post" action="form.php">';
echo '<input type="text" name="foo">';
echo '<input type="submit" name="submit" value="Submit">';
echo '</form>';
}
?>[/php]It uses a meta refresh rather than a header() function
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote