Pieter Lategan Posted June 25, 2011 Share Posted June 25, 2011 Hi Can someone help me with the following problem I struggle with my login form. I publish both forms one is my html and the other one is my php. I'm not sure if I'm on the right track with the forms. Thank you very much <html> <head> <title>A Basic HTML Form</title> </head> <body> <form name="form1" Method ="POST" action="submitForm.php"> <p><input type="text" name="text" value="Name"value="<?php print$username;?>"</p> <p><input type="text" value = "username" value="<?php print$username;?>"</p> <input type="Submit" name= "Submit1" Value= "login"> </form> </body> </html> /////////////////////////////////// <?php session_start(); // check username and password information if (($_SESSION['Name'] == 'Pieter') and ($_SESSION['username']=='pieteral')) { $_SESSION['authuser'] = 1; } else { echo "Sorry, but you don't have permission to view this page, you loser!"; exit(); } ?> Link to comment https://forums.phpfreaks.com/topic/240403-problems-with-my-login-form-can-some-one-just-look-and-help/ Share on other sites More sharing options...
Pikachu2000 Posted June 25, 2011 Share Posted June 25, 2011 It seems you've neglected to ask a question. Link to comment https://forums.phpfreaks.com/topic/240403-problems-with-my-login-form-can-some-one-just-look-and-help/#findComment-1234804 Share on other sites More sharing options...
Pieter Lategan Posted June 25, 2011 Author Share Posted June 25, 2011 Yes, I have struggled all day, I'm new with php Link to comment https://forums.phpfreaks.com/topic/240403-problems-with-my-login-form-can-some-one-just-look-and-help/#findComment-1234805 Share on other sites More sharing options...
Pikachu2000 Posted June 25, 2011 Share Posted June 25, 2011 And you still haven't asked a question. What problems/errors/whatever are you wanting help with? Link to comment https://forums.phpfreaks.com/topic/240403-problems-with-my-login-form-can-some-one-just-look-and-help/#findComment-1234807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.