Jump to content

Redirect back.


Dat

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.