zoobie
09-23-2003, 10:37 PM
Which would be faster...
Echoing out a short tell-a-freind confirmation page
or
just redirecting them to it via
header("Location: http://site.com/folder/confirm.php");
?
Nothings been cached except the style and form's validation.
Thx
SDP2006
09-23-2003, 10:46 PM
Redirect.....
It'll take like not even a second
Nightfire
09-23-2003, 11:10 PM
It'll just be the same if the html is the same. Using a header redirect would be easier for you to update the html though
zoobie
09-24-2003, 01:22 AM
I've been told that:
echoing would have a more reliable completion time as you have to deal with pipe clogs when you redirect.
Comments?
firepages
09-24-2003, 05:49 AM
echoing would have a more reliable completion time as you have to deal with pipe clogs when you redirect
.... and check your dilithium crystals are correctly phased :D
header("location:blah");
zoobie
09-24-2003, 07:09 AM
Well, if using a header redirect, how would I again post the vars to the redirected page without using a session, etc.?
firepages
09-24-2003, 10:31 AM
ah ok , well if there is not too much data you could just pass it bak via GET ?
<?
header("location:temp.php?var={$_POST['value']}&var2=etc"));
?>
or all at once
<?
header("location:temp.php?blah=".serialize($_POST));
?>
(you could base64_encode() it as well to look less dodgy :) )
or as you suggest use sessions, you could indeed use fsockopen and POST the data to your new page as well but thats overkill.
alternately , you could use apaches mod_rewrite to rewrite the url for you in the first place (wont be available on all hosts)
zoobie
09-24-2003, 07:23 PM
...or simply echo out the data. ;)