01-16-2017, 02:53 PM
I think the trick is going to be that at the bottom of the securePage function over in us_helpers, there is a just a redirect to the homepage. What we need is to pull from another file over in usersc so people can put whatever code they want.
I'm not sure if you know this, Brandin, but any time you do a redirect, you can do a get request at the end and flash a message on the screen. I even do that as a quick way to give user feedback.
So, let's say you have someone complete a form and then want to send them back to a file called cpanel.php, you can do
Redirect::to('cpanel.php?err=Form+complete!+Thank+you+for+your+submission!');
And they will be redirected and have that message flash up on the screen.
I'm not sure if you know this, Brandin, but any time you do a redirect, you can do a get request at the end and flash a message on the screen. I even do that as a quick way to give user feedback.
So, let's say you have someone complete a form and then want to send them back to a file called cpanel.php, you can do
Redirect::to('cpanel.php?err=Form+complete!+Thank+you+for+your+submission!');
And they will be redirected and have that message flash up on the screen.