How to get login information in action.php file.need action.php file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to get login information in action.php file.need action.php file

27th May 2017, 7:32 PM
Salahu dheen
Salahu dheen - avatar
2 Answers
+ 1
<?php $user=$_POST['username']; $pass=$_POST['password']; ?> I am assuming here that the name of the input field in file that contains html form is 'username' and the field for password has the name 'password'.
28th May 2017, 10:34 AM
Abhinav Saprey
Abhinav Saprey - avatar
0
<?php $email = $_POST["email"] ?> assuming that input field on login page has attribute name="email" and that you have used post method in form
27th May 2017, 7:36 PM
Amar
Amar - avatar