I run an ecommerce site that looks and, "flows" like this:
1.)home
|
2.)view order purchase
|
3.)print order purchase
|
4.)print final shipping label
It would be more efficient, and elegant to have all the "view," "print order," and, "print label" all on SAME page, but only visible when visitor is ready to click the "proceed" buttons.
How "foolproof" and "guaranteed" is PHP's "isset" function? I'll use it like this:
//note that it's all on same page
<?php
if (!isset($print_final_label)
{
echo "review your order and if you're happy with it, click HERE for FINAL LABEL";
echo "<input type=\"submit\" value=\"Print Final Shipping Label\">";
}
else
{
echo "Thank you! Here is our shipping label";
echo "<img src=\"SHIPPINGLABEL.GIF\">
}
?>
So... that is just a portion of what I have. But I hope it's enough so you get the idea. By using the true/false "isset" function, it will save me a bunch of code, it will save me from using more than one form, and save me extra hidden inputs getting user data from one page's form to the next, and so on.
But, something tells me that it isn't "quite as foolproof" as the "going from one page to the next" style.
What do you think?