adobe template need help to use the login text box and search fields.

Posted on 2005-04-27
Medium Priority
Last Modified: 2013-12-16
have a template in photo shop..
It has some text box images that I need to use to verify user name and password so that I can authenticate each user based on their password.

The problem is, How can I do this so its NOT a maintenance nightmare?
I know that I need to do this in an html editor using a form or something..
could someone tell me the step by step process on how to do this?
I have dreamweaver mx 2004
my server that I will be on has php also so if you can help me let me know!!
I need all the details:
step1,step2 etc..

thanks in advance.

Question by:LHood1
  • 2
LVL 19

Accepted Solution

DreamMaster earned 1500 total points
ID: 13884546
<form name="loginForm" action="login.php" method="post">
<input type="text" name="loginid" size="20"><br>
<input type="password" name="passwd" size="20"><br>
<input type="submit" name="submit" value="Login">

So much for your form, this is as basic as it comes...

In your login.php page

You'll have to setup a connection to your database (assuming you have one) and compare the inputted values against those in the database.



$sSQL = "SELECT username, password FROM tbl_users WHERE username = '" . $_POST['loginid'] . "' AND password = '" . $_POST['passwd'] . "'"

$sQuery = mysql_query($sSQL)or die(fSqlError($sSql,__FILE__,__LINE__));
$row = mysql_fetch_array($sQuery);
if ($row['wachtwoord'] != $_POST['password'])
   echo "Wrong password";
   echo "Welcome back";


LVL 19

Expert Comment

ID: 13985190
Glad to have been helpfull :)


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question