Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 26 Sep 2019, 20:19
SNease001 SNease001 is offline
Join Date: Jul 2018
Redirect after login to URL with variable

I have been digging for days in these forums and getting close but can't seem to get there. I have an external form for logging into our Vb5 site. I need to redirect after login to our home page which is accomplished easily by including the hidden [url] variable from the form. Unfortunately, I can't do it that way as the URL I need to redirect to must contain the userid for the Vb5 logged in user (https://homepage.asp?u=[userid] or example).

I expect I could capture the userid either somewhere in the login process (login.php or auth.php) and execute the redirect from there or on the home page once the login process has completed then execute the redirect from there. The problem is I am very new to PHP and am not sure of 1.) How to capture the userid
2.) The syntax for the redirect with the variable
3.) The Vb5 page to place it on

Any help would be greatly appreciated!!! In fact, you may save a poor man's sanity. Thank you!
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mini Mods Login Redirect - Redirect your users to their User CP or Profile when logging on sockwater vBulletin 3.7 Add-ons 29 19 Jun 2012 18:07

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 16:02.

Layout Options | Width: Wide Color: