This content has been marked as final. Show 5 replies
This is possible, but I'm not sure you can easily use the ADDT tools to create this. It would pretty much be a hand coded page.
page1.php would need to be coded to:
1. Grab the username and access_level values carried over from the previous page - I am assuming these are $_SESSION variables
2. Connect to the database and do a MySQL INSERT on the users table - I don't think you can use ADDT Insert Record transaction here. It would be too complicated to force it to submit.
3. Redirect user to the page you want using the following php code:
So you just need to get the values, insert to the table, and redirect the user. This page should just be all hand php coded. It should be fairly easy to do this.
Hope this helps,
Sorry to take so long to respond!
Thanks for the suggestions..that's exactly what I'm trying to do.
Question though. Is it possible to use the Tools Restrict Access to Page using this model (logging in using an outside login and grabbing the username and adding an access level yet not having a password)?
Are you trying to set the correct session variable, without requiring login, to allow the restrict access to page server behavior to work?
Once again sorry for the delay in responding!!!
I'm definitely setting the correct session variable because I've tested successfully this scenario;
I submit my login page and echo'd on the code page all 3 session vars (kt_login_id, kt_login_user, kt_login_level) successfully.
yet, when I comment out the echo, so that when I login I end up on my 3rd page, entry.php, which is Restricted by Access Level, I'm redirected back to the login page.
Weird, because this was working for a while but now I can't figure it why it won't login.
I have the same intermittent problem. Any luck fixing this?