/    Sign up×
Community /Pin to ProfileBookmark

PHP login **Please someone help a IT Girl**

hi all right got a problem which needs sorting out, am trying to make a login page using php and oracle but i just cant see what to do next as i have followed the dreaweaver guide on how to do this (all i want is an easy one) and it just wont connect to the database. can anyone help out with this problem???

here is the database which i want to hold the password (Only one at the moment e.g. it will only let u login if your user name is ‘BTCELLNET’ and your password is ‘LOUISE’ any others i want it to thow them out)

CREATE TABLE userpass (
username1 VARCHAR2(50) NOT NULL PRIMARY KEY,
pass1 VARCHAR2(50) NOT NULL);

and here is the login screen i want it to connect to

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd“>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<title>Untitled Document</title>
</head>

<body>
<form action=”” method=”post” name=”login page” id=”login page”>
<p>
User Name
&nbsp;
<input name=”username” type=”text” id=”username”>
</p>
<p> Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name=”password” type=”password” id=”password”>
</p>
<p>
<input type=”submit” name=”Submit” value=”Submit”>
</p>
<p>&nbsp;</p>
</form>
</body>
</html>

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@chazzyMay 23.2006 — but where's the part that processes this?
Copy linkTweet thisAlerts:
@NogDogMay 23.2006 — Your <form> element will need a value for the action attribute that points to the PHP (presumably) page that will process the login information.
[code=html]
<form action="login.php" method="post" name="login page" id="login page">
[/code]

That page (login.php in the above example) is where you'll write your PHP code to process the form inputs, compare them to the database, and determine if it's a valid login.
Copy linkTweet thisAlerts:
@loudcfcauthorMay 23.2006 — have i got to write some SQL then to find out the username and password is good or do i need to write some php code, sorry i dont have a clue me and my mate are just trying to make this funcion work for a website for our mates
Copy linkTweet thisAlerts:
@SheldonMay 23.2006 — Yes you do, refer to NogDog's article

http://www.charles-reace.com/PHP_and_MySQL/Login_Control/
×

Success!

Help @loudcfc spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...