|
Posted by Josef Blφsl on 07/19/05 17:33
dracolytch schrieb:
> You need to separate your action code from your display code. You
> should never have an action variable or mode variable. Ever.
>
> Each page in PHP is like a function or method in other languages. Each
> one should have a unique, specific purpose.
>
> Create a link that goes to the cart-additem.php page.
> Have cart-additem.php validate your variables, add the item to the
> cart, and then relocate to a cart-display.php page.
>
> Writing your own shopping cart can be a real dangerous thing to do.
> Crackers often see custom carts as ripe targets for attack. Harden,
> harden, harden your code.
>
> ~D
>
first thank you for your post!
i understand what you mean, but how can i say (inside my addtocart.php
script) to the browser he should automatically switch to the next page
(showcart.php)
[Back to original message]
|