Login System with Dominio

Asked

Viewed 95 times

-1

Well, let’s see if you can help me! I’m trying to make a basic login system, but I have a problem, I’m still beginner in php and I don’t know much.

I’m trying to make this form work properly.

<input name="dominio" type="text" placeholder="dominio.com" autocomplete="off" style="background-color:#cce0ff;color:#00f;" />
<br><br>
<input name="email" type="text" placeholder="[email protected]" autocomplete="off" style="background-color:#cce0ff;color:#00f;" />
<br><br>
<input name="senha" type="password" placeholder="**********" autocomplete="off" style="background-color:#cce0ff;color:#00f;" />
<br><br>
<input type="submit" name="Submit" id="Submit" value="Login" class="form-control element_style_9 event-submit-btn" onclick="submitClicked();return false;" />

will be who could help me better?

  • 1

    Could you put your PHP code in the question? So we could see what your login logic looks like?

  • I haven’t done it in PHP only in HTML even, because as the login system will be only for some people I wanted to use it already without using the database.

  • So, there is no way to make a login system without using a database. If you want to make one, you will need to use a database.

  • So thank you even John for being able to help me better, because I can do this in JS but I don’t think it’s safe.

  • No doubt it is not safe, as anyone can see its logic with JS, and therefore it is not even taken into account as login system.

  • Can John switch from JS to PHP by making some modifications?? Because I’m not very good at both, but I’m learning little by little.

  • It depends on what you have done with Javascript.

  • I was thinking of creating one in php, but in that sense I only learned how to send input files to the server. I even changed the form to get better, but the other problem is quite simple, I have everything done more it does not log in because it gives error

  • I think there’s something missing or there’s a lot of things wrong, I hope to fix it soon, if you want to take a look it would be that you could contact me via my email [email protected] so you would help me in the other and this would end and put a solution in this post through the help of the other.

  • Dude, I can’t help you directly, but take a look at this link, maybe I can help.

  • OK John thanks anyway for everything

Show 6 more comments

1 answer

-1


guy... to create a login system, first you need to create a database with a table containing information such as "username" "e-mail" these things. after creating the form you need to tell the method used to transfer this data GETor POST and the action for the upload folder. example <form method = 'post' action = 'loading.php' </form>. then you need a PHP file (in this case "loading.php") to connect to the database, check if the user is really registered and open a session... anyway you need to have a knowledge already average or even advanced in PHP and also some knowledge in SLQ (database) using PHPMYADMIN or the SQL console.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.