0

How I connect this file with data base?

I need to connect this login page with data base. Anyone plz help me. https://code.sololearn.com/WMM4PzUMrpZp/?ref=app

22nd Sep 2019, 1:13 AM
Work Spirit
Work Spirit - avatar
2 odpowiedzi
+ 1
I noticed your <form> doesn' have `action` attribute. `action` attribute designates the back-end file that will handle the incoming request and returning response. Your <input> also are missing `name` attribute. This attribute is needed when sending information to the back-end code. The `name` and `value` attribute are sent to back-end code in pairs. Get some more info about HTML forms here: * HTML Forms https://www.w3schools.com/html/html_forms.asp
22nd Sep 2019, 7:59 AM
Ipang
0
I would strongly suggest you to complete your PHP course first, at which point you'll have a better understanding about things, and can proceed with this idea. Mind you though, you can't experiment with databases in SoloLearn, so I suggest you to install and experiment in your own machine using local server. You can try XAMPP for this, it's a software package useful for learning back-end programming with PHP (tagged). * XAMPP https://www.apachefriends.org/ Further down the road you can proceed with database stuffs. Here's a pretty decent page to get started with databases: * PDO Tutorial http://wiki.hashphp.org/PDO_Tutorial_for_MySQL_Developers Good luck to you! 👍
22nd Sep 2019, 7:59 AM
Ipang