Dat Posted September 17, 2009 Share Posted September 17, 2009 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? Link to comment https://forums.phpfreaks.com/topic/174547-redirect-back/ Share on other sites More sharing options...
khr2003 Posted September 17, 2009 Share Posted September 17, 2009 You can redirect the form in many ways other than including the redirecting link in the url. How about using: header("Refresh: 1;url=URL_HERE") Link to comment https://forums.phpfreaks.com/topic/174547-redirect-back/#findComment-919931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.