Page 1 of 1

Registration form (php) to create automatically account

Posted: Tue 16. Jul 2019, 01:09
by minumexh
Hello,

I'm new here and first I want to say thank you for the best Hosting Control Panel ever! ;)

Second I want to ask if is possible somebody (if) or me (I have basic knowledge about php) to make a php script form with Your Name, Your Email, Your Password and everything needed for account KeyHelp and will be done by: signup.php which will create an account by clicking the Register button automatically. I wan to offer free web hosting.
Image


Thanks in advance!

Re: Registration form (php) to create automatically account

Posted: Wed 17. Jul 2019, 10:22
by Alexander
Hello minumexh,

Thanks for your kind words ;).

Currently, there are 3 choices:

1) Add all required fields directly into the database table `keyhelp`.`users`. The column names should be self-explanatory. Maybe you also need a domain, than you want to add data into `keyhelp`.`domains` as well and so on...
After that, some additional commands have to be called, data have to be inserted into the database. I can tell you, if you want go this route.

2) You can analyze, how KeyHelp is processing HTTP requests and perform the same requests by yourself. Analyzying can be done with a browser and its dev-tools.

3) Wait :). I may have something for you ready with the next update, which should help you achieving the things you want, without much headache

Re: Registration form (php) to create automatically account

Posted: Wed 17. Jul 2019, 18:04
by minumexh
Hello Alexander,

Thanks for your reply.

Maybe I choose the easy way :D that is (3). With proper guidance I could make the registration form according to (1) but with a lot headache.

Simple form like: here; is the right way;

Best Regards.

Re: Registration form (php) to create automatically account

Posted: Thu 18. Jul 2019, 22:22
by minumexh
I think... form should've with predefined template and maybe the form look like with Keyhelp User Administration / Add user form, if I'm correct :?: of course if you can help me it would be perfect especially if there is something ready :D :D

Re: Registration form (php) to create automatically account

Posted: Fri 19. Jul 2019, 07:50
by Tobi
minumexh wrote: Wed 17. Jul 2019, 18:04 Hello Alexander,

Thanks for your reply.

Maybe I choose the easy way :D that is (3). With proper guidance I could make the registration form according to (1) but with a lot headache.

Simple form like: here; is the right way;

Best Regards.
Do not use the code on this website!
This code is vulnerable for SQL-injection!

You must sanitize every user input.
Never trust any user input!

Anyone can hack your database and probably your server!

Re: Registration form (php) to create automatically account

Posted: Fri 19. Jul 2019, 18:23
by minumexh
SQL-injection not great, not terrible... :D yes of course I want a safe way for server and MySQL database.

Thank you for your highlight Tobi. Is there a way to do it safely and without risk;

Re: Registration form (php) to create automatically account

Posted: Fri 19. Jul 2019, 20:04
by Tobi
You may use the basic script from the website anyway.
But you have to sanitize any user input.

Error handling is almost more work than the rest of the script.

Every user input is evil 😈