post sign up and login credentials to related pages
Yes, it's secure and essentially the same. The source page (the page you're on) doesn't matter because the browser creates a new request that submits to the form target page only. But definitely using HTTPS is a good idea.
Hope that helps, let me know any other questions.
thanks for your reply.
So i still need to submit and post the login/signup credentials or i just put everything to the index.php and change the related lines in the websiteMembership.php?
$GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL'] = '/login.php'; // url to login form
$GLOBALS['WEBSITE_LOGIN_SIGNUP_URL'] = '/signup.php'; // signup url linked to from the login page
What are you propose?
PS: after i checked again the websiteMembership.php, i didn't find any reason or use for these 2 variable, only for the first in the websiteLogin_redirectToLogin that i can easily modify for my needs.
We just use those variables to keep all the information in one place. So you don't need to hardcode URLs everywhere. Feel free to try doing it a few different ways and adapt it to what works for you.
One way to get started would be to copy and paste the code from the existing user-login or user-signup pages.