Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Creating A Log-in Page With Xampp And Php


  • Please log in to reply
23 replies to this topic

#16 JUICYboy

JUICYboy

  • Members
  • 537 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Anaheim, Ca
  • Local time:05:25 AM

Posted 29 March 2011 - 08:34 PM

So do I type in the address bar:

localhost/name_of_file.php

Or should I open up the .html with the text fields? :busy:

BC AdBot (Login to Remove)

 


m

#17 groovicus

groovicus
  • Topic Starter

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:25 AM

Posted 29 March 2011 - 09:06 PM

That is what I just said to do.

#18 Blart576

Blart576

  • Members
  • 5 posts
  • OFFLINE
  •  
  • Local time:05:25 AM

Posted 30 August 2011 - 03:20 PM

this is great stuff, guys, thank so much for sharing! This is indeed a budding request that is coming along more and more, now that websites are going beyond just displaying info and needing to be able to do so much more to create interaction with clients.

#19 pikpok

pikpok

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:04:25 AM

Posted 07 October 2011 - 07:42 AM

hello,
great tutorial!! but I have a problem its gives me an error:

Notice: Undefined index: realname in C:\xampp\htdocs\password_test\process_form.php on line 8

Notice: Undefined index: mypassword in C:\xampp\htdocs\password_test\process_form.php on line 9
qwerty:123456
qwerty
123456
That is not the correct log-in information.

lines 8 and 9 I copy from tutorial:
$name = $_POST['realname'];
$pass = $_POST['mypassword'];

thanx!

#20 groovicus

groovicus
  • Topic Starter

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:25 AM

Posted 07 October 2011 - 12:04 PM

I would have to see your code to help, and it should be in it's own topic. :) I know the code works as is, so my guess is that you have a typo in your code perhaps?

#21 lovelylaya

lovelylaya

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:02:55 PM

Posted 18 November 2011 - 01:52 AM

Hi

I am newbie and tried everything but i am getting a plain page with the following for the initial instruction: http://localhost/password_test/

---------------
Index of /password_test

Parent Directory
index.php.txt
password.txt.txt
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1 Server at localhost Port 80

Can someone tell me what is wrong??

Thank you
Laya

#22 groovicus

groovicus
  • Topic Starter

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:25 AM

Posted 18 November 2011 - 08:29 AM

Again, we would have to actually see your code. The link you provided is to a file that is local to your system; we can't see it. :)

My guess is that perhaps you didn't save it as an html file.

Edited by groovicus, 18 November 2011 - 08:30 AM.


#23 pistol22cal

pistol22cal

  • Members
  • 290 posts
  • OFFLINE
  •  
  • Gender:Female
  • Local time:04:25 AM

Posted 03 September 2015 - 04:52 PM

Please dont store passwords as plain text. PLEASE!!!!!

 

Its a very big no no.


I Love Lamp!


#24 salinlahi

salinlahi

  • Members
  • 1 posts
  • OFFLINE
  •  

Posted 07 September 2017 - 07:06 PM

Hello. by the way thank you so much for this. it really helped me a lot. but i would like to know, is it posibble to allow multiple username and passwords to log in? if yes, please let me know. thank in advance.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users