View Single Post
Old 06-02-2008, 04:40 PM   #17 (permalink)
delayedinsanity
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

If the result of the form being processed is that you're forwarding the user to another page, why not place it at the top?

PHP Code:
<?php
if (isset($_POST['update_cart'])) {
// do your stuff and redirect
}
?>
<html> ... do your other stuff .. </html>
This also has the bonus that if you want to display an error message on the form, you can set one at the top of the page that will be displayed later on only if it's found to be set.
-m
delayedinsanity is offline  
Reply With Quote
The Following User Says Thank You to delayedinsanity For This Useful Post:
StevenF (06-02-2008)