This Function Has Been Available Since:|
(AFCommerce v 2.1, Functions v 1.1)
Redirects the current page and exits.
string = afc_redirect_page (redirect_to_pagename)
This script will also exit the current page immediately after the redirect, which is normally you should do when ever using the header function to prevent any other code from executing. So you will use this function a lot, look at the many examples through out the cart, you can leave the page with very little code by using this function.
redirect_to_pagename (string) - The page to be redirected to. This can be a relative or full (real) path.
This function has no return value.
Open Source: Yes
There are currently no examples for this function.
Back to Functions List