Dat
09-17-2009, 07:48 AM
So I wanna create redirects after a form is complete.
Here is how it goes, I have the information page and "edit new info" link, which links to the form to edit new info. And... i have another link on the Control panel page which also links to the form to edit info. I want it so if i submit a form i can go back to w/e page I originated from.
info page -> Form -> info page
CP page -> Form -> CP page
So what i created is this a link
Example:
<a href="www.domain.com/cp/form.php?category=apple&id=1&redirect=www.domain.com/cp/?category=apple&id=1">Edit category</a>
Obviously you see the prob the redirect $_GET stops after apple cause of the '&'
Any solutions?
Here is how it goes, I have the information page and "edit new info" link, which links to the form to edit new info. And... i have another link on the Control panel page which also links to the form to edit info. I want it so if i submit a form i can go back to w/e page I originated from.
info page -> Form -> info page
CP page -> Form -> CP page
So what i created is this a link
Example:
<a href="www.domain.com/cp/form.php?category=apple&id=1&redirect=www.domain.com/cp/?category=apple&id=1">Edit category</a>
Obviously you see the prob the redirect $_GET stops after apple cause of the '&'
Any solutions?