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

Posted on 2005-04-27
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
    LVL 19

    Accepted Solution

    <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

    Glad to have been helpfull :)


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now