Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 07-14-2004, 12:44 PM   #1 (permalink)
KEEBOD
Registered User
 
Join Date: Jul 2004
Location: FL, USA
Posts: 1
KEEBOD is on a distinguished road
Lightbulb PHP code for Login Screen

Can someone please help me with code to create a login screen with password for users on my website. I am a php newbie so please bear with me.........
KEEBOD is offline   Reply With Quote
Old 07-14-2004, 06:18 PM   #2 (permalink)
sammy
Code Monkey
 
sammy's Avatar
 
Join Date: Jun 2004
Location: Brooklyn/Rochester
Posts: 53
sammy is on a distinguished road
Send a message via AIM to sammy
Um, you can just use a form which is regular HTML such as this:
PHP Code:
<?
print("<form class=\"pcontent\" name=\"login\" action=\"login.php\" method=\"post\">
                        Login:<input type='text' size='10' name='login'>
                        Password:<input type='password' size='10' name='password'>
                        <input type='Submit' value='Login'>
                        </form>
                                
                "
);
?>
But if you want to process that information, that will require more, like if you want to match the username and password to information in your database or something. In this case, login.php would be the php page that will validate all the users information and you take it from there.
__________________
sammy is offline   Reply With Quote
Old 07-15-2004, 05:18 PM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,694
redhead is on a distinguished road
And sde made a very good tutorial on that one: http://codenewbie.com/tutorials/1131.html
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple PHP MySQL code: confused. easilyi Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 4 10-24-2004 07:53 PM
Cisco Code breaking sde Code Newbie News 0 05-21-2004 07:10 AM
PHP Regular Expressions Epsilon PHP 5 12-24-2003 07:36 AM
I need to learn PHP Nitro PHP 9 06-28-2003 11:24 AM


All times are GMT -8. The time now is 11:19 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting