daniel27lt Posted February 28, 2013 Share Posted February 28, 2013 Hi there,I have a question that I seem not to be able to find online else so I'm hoping someone here can help me.The question I have is I am in the process of creating a membership site. I have completed the login process correctly with a PHP login script I found online. I have installed the script correctly such as database, protecting certain pages etc.The problem I am having is I am wanting to hide the URL where the registration page is found where users can signup (e.g. mywebsite.com/register.php). For example, I am wanting users to be able to login any time (mywebsite.com/login.php from a link I provide on the home page), but I am wanting to hide the signup page as user will get access to the registration page once they have made payments. But the problem is if the user has a little bit of knowledge about login scripts, there should know just to type in either signup.php or register.php (where the login script is located) to get access to this page for free.For example, could I some how change the register.php name to something like register229102.php without the entire script not working? The idea behind my membership site will be once a user makes a payment via redirecting to a secure Clickbank payments page (as I am using Clickbank as my payment options) and once the user has made payments they are then redirected to the thank you page, when then the user will click a link to be redirected to the register.php page where they sign up and get access from there. And they can login from the home page once they have become a member. I hope this has made an understanding of my idea.I have everything already set up and would just like an easy way to hind the register.php URL as I am not to techy when it comes to PHP.Thanks Kindly,Daniel Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/ Share on other sites More sharing options...
timothyarden Posted February 28, 2013 Share Posted February 28, 2013 (edited) You could change it so that it only showed the register form if they submit a unique code that you would generate on the Thankyou page (and add to database) when the user pays. Hope this helps, Timothy Edited February 28, 2013 by timothyarden Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/#findComment-1415555 Share on other sites More sharing options...
daniel27lt Posted February 28, 2013 Author Share Posted February 28, 2013 You could change it so that it only showed the register form if they submit a unique code that you would generate on the Thankyou page (and add to database) when the user pays. Hope this helps, Timothy Hi Timothy, Thanks for your response. This soulds like something I'm looking for. How would I do just what your syaing? Thanks once again Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/#findComment-1415557 Share on other sites More sharing options...
timothyarden Posted February 28, 2013 Share Posted February 28, 2013 Do a register formstart a session on itmake a formask user for their unique code submit - check against database add a value to the session to check when the form processes if that value is true display the registration form on the page otherwise display the unique code form Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/#findComment-1415559 Share on other sites More sharing options...
daniel27lt Posted February 28, 2013 Author Share Posted February 28, 2013 Do a register form start a session on it make a form ask user for their unique code submit - check against database add a value to the session to check when the form processes if that value is true display the registration form on the page otherwise display the unique code form Thanks, I do now understand how that works, but don't know how to code it. Not to good a PHP. Could you give me an example if possible in code. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/#findComment-1415563 Share on other sites More sharing options...
timothyarden Posted February 28, 2013 Share Posted February 28, 2013 Sent you an Post Message regarding this Quote Link to comment https://forums.phpfreaks.com/topic/275043-wanting-to-hide-signup-page-within-php-login-script/#findComment-1415567 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.