Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
in Q2A Core by

i want to logon using a simple php page, not the 'single login' functionality

i have a <form> and the variables to submit: $emailhandle and $password

Is there a function to accept these and check if valid and then direct to the main QtoA page?

e.g.   something like:

if   qa_check_logon_details( $emailhandle,$password, $remember) == true


require 'qa-include/qa-index.php'


else {

back to logon page



(qa_get_logged_in_userid()===null)  is useful ot check if user is already logged in, but i need the step before this to actually login.


1 Answer

+1 vote

Take a look at qa-page-login.php to see what's retrieved and checked.