0
How to add basic log in/sign up PHP server in website?
example?
10 Respostas
+ 1
ok i made a basic login with a mysql/mariadb database systeme,
but its just a function that return true(if its true it sets a session variable with the userid) or false(does nothing than return false).
https://code.sololearn.com/w79797cF2wpP/#php
if any question left no fear to ask i'll help you.
even if its about seting up your server.
0
basic thats funny
with xml or sql?
0
e.g.when we login or sign up in website ...where all data goes...PHP server right?so..my question is that how to code that PHP?I'm confused
0
yes your right but where you wanna store your userdata
0
I don't know😅plz let me know where to store it
0
ok..ty..tell me how to setup that seever
0
ok..ty..tell me how to setup that server
0
dude ur PHP code pop this message..
Notice: Undefined index: passwd in ..\Playground\ Notice: Undefined index: email in ..\Playground\ Notice: Undefined variable: db_password in ..\Playground\ Fatal error: Uncaught PDOException: could not find driver in ..\Playground\:14 Stack trace: #0 ..\Playground\(14): PDO->__construct('mysql:host=loca...', 'testuser', NULL) #1 ..\Playground\(29): login('', '') #2 {main} thrown in ..\Playground\ PHP Notice: Undefined index: passwd in ..\Playground\ PHP Notice: Undefined index: email in ..\Playground\ PHP Notice: Undefined variable: db_password in ..\Playground\ PHP Fatal error: Uncaught PDOException: could not find driver in ..\Playground\:14 Stack trace: #0 ..\Playground\(14): PDO->__construct('mysql:host=loca...', 'testuser', NULL) #1 ..\Playground\(29): login('', '') #2 {main} thrown in ..\Playground\
0
yes this message pops up because $_POST["email"] and
$_POST["passwd"] have no value because no form has been submited
and sololearn doesn't support POST and sql
0
and about the server do you have a vserver or dedserver you already rented or do you have a webserver
or do you wanna just try it local(on you pc)