CodeIgniter Forums
Posting to self from form - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Posting to self from form (/thread-47532.html)



Posting to self from form - El Forum - 12-12-2011

[eluser]Unknown[/eluser]
Is there a built in way in CI to post to the actual page/url that the user is on?
So to speak I've a login running, but the user can be at any page and still press the
login button since it's part of my mainpage, and so i just want to post back to whatever page he might be on and then my login will simply check if($this->input->post("loginForm") or similar.

I was thinking to use something similar to $_SERVER['REQUEST_URI'] unless there is a better way.