php and mysql login form?
930762
Try going to this article on evolt.com\n\nI used it for 'inspiration' a good while back but it should still be valid:\nhttp://www.evolt.org/PHP-Login-System-with-Admin-Features
508273
Well PHP and MySQL is the Best you can get for this......\n\nhttp://www.php.net/manual/en/ and Dive into the world of PHP
1114222
Yes i use PHP Designer 2005 get it from http://www.download.com... It's easy...
707482
HTML doesn't do password checking. For that you need a server-side script written in php or perl or some such. Google on "php password script" and you'll find plenty of free ones. There are also some javascript solutions, but they're less secure. \n\nSo what you use is a form like \n<form action="auth.php" method="post">\nEnter password: <input type="password">\n<input type ="submit">\n</form>\nwhere auth.php is a script you install on your web server that checks passwords and displays the appropriate page.
683017
"What is my problem in database connection?"\nThe three potential problems that come to mind are:\n1. You aren't using a password and the account has a password. You need to specify a password for your MySQL account when connecting.\n2. The user does not exist.\n3. Or that user is not permitted to access the database from 'localhost'.\n\nTry using the account 'accountname'@'%', to allow access from anywhere (this is not particularly secure, but it's useful for testing purposes).\n\n\nIf you don't know anything about MySQL or SQL, you are asking in the wrong place. Try a question like "Where can I find good resources for helping me learn SQL?".
398334
I just used a form to send the username and password data to the appropriate place. Make sure you keep the "user" and "pass" attributes the same, and replace the path ("www.yourdomain.com") with the address of your site.\n\n<form name="login" action="http://www.yourdomain.com:2095/login/" method="post">\n  <p>\n    Username:\n    <br />\n    <input type="text" name="user" />\n  </p>\n  <p>\n    Password:\n    <br />\n    <input type="password" name="pass" />\n  </p>\n  <p><input type="submit" value="Submit" /></p>\n</form>\n\nPlease bear in mind that POST data is sent in plain text, so you may want to work out some sort of encryption.
683039
=======\nPHP\n=======\nYou can get a 1,000 page PHP Manual here:\n\nhttp://meysoft.com/support/phpmanual.pdf\n\nYou might prefer the on-line manual here:\n\nhttp://www.php.net/manual/en/\n\nI like the on-line version better because there are a lot of coding examples that have been contributed by users.\n\n=====\nMySQL\n=====\nYou can get a PDF manual here:\n\nhttp://downloads.mysql.com/docs/refman-4.1-en.pdf\n\nGood luck and don't forget to pick the best answer!
497524
you need first to install a database server like mysql, postgres, etc.. then use php in your application to connect to it.
644162
it's just like connecting to a local one but with a full path\nin mysql_connect()  ex:\n\n$link = mysql_connect('example.com:3307', 'mysql_user', 'mysql_password');
879067
Use mySQL and secure it. Plus, once it is set up you can manipulate it so much easier.
885958
This code is the minimal. Here it validates the user name and password are admin. In case both the values are admin it allows login. Else it returns an error message - error!\n\nThe only thing that may be confusing for you over here may be the session concept. \n\nThis code has no databse connectivity. Incase you are planning for a database based project use a MS Access connectivity. Its easy.\n\nLet me explain this code\n\n<% IF Request.form="" THEN %> \n<html> <body> In order to access this pages fill the form below:<BR> \n'THIS IS TO POST DATA FROM THE PAGE\n<form method="post" action="index.asp"> \nUsername: <input type="text" name="username" size="20"><BR> \nPassword: <input type="password" name="password" size="15"><BR> \n<input type="Submit" value="Submit"> \n</form> </body> </html> \n<% ELSE %> \n'IF USERNAME AND PASSWORD NOT admin RETURN an ERROR\n<% IF Request.form("username")="admi... AND Request.form("password")="admi... THEN %> \n<% Session("permission")="YES" \nSession("username")="admin" \n%> \n<html> <body> \n'THEN YOU CAN VIEW PAGE1 &  PAGE2\nHi <% =Session("username") %>, you can view: <BR> \n<A HREF="page1.asp">Page 1</A><BR> \n<A HREF="page2.asp">Page 2</A> \n</body> </html> \n<% ELSE %> Error! <% END IF %><% END IF %>\n\nYou can mail me to technoblitzs@yahoo.com incase you have any clarification or want to connect to  a database.
556712
There are numerous tutorials on how to query an mysql database with php. After that all you have to do is to post the values you want and your java script will read them. It depends so much on what you want to accomplish. If you have a clear image of the final product it is easy to be done.
467689
make php file and put this codes in it\n\n<?\n$name= $_REQUEST['name'];\n$last= $_REQUEST['last'];\n$email= $_REQUEST['email'];\n$msg= $_REQUEST['msg'];\n$msg2="\n<div align=&#92;"center&#92;">\n<table border=&#92;"1&#92;" width=&#92;"42%&#92;" bordercolor=&#92;"#C0C0C0&#92;" height=&#92;"208&#92;">\n<tr>\n<td>".$name."</td>\n</tr>\n<tr>\n<td>".$last."</td>\n</tr>\n<tr>\n<td>".$email."</td>\n</tr>\n<tr>\n<td height=&#92;"105&#92;">".$msg."</td>\n</tr>\n</table>\n</div>";\n\n\n$to  = "your@email.com" . ", " ; // note the comma\n$to .= "your@email.com";\n\n$subject = "Online Form";\n$headers  = "MIME-Version: 1.0&#92;r&#92;n";\n$headers .= "Content-type: text/html; charset=iso-8859-1&#92;r&#92;n";\n$headers .= "From: Sales Department <visitor@yoursite.com>&#92;r&#92;n";\n$headers .= "Cc: your@email.com&#92;r&#92;n";\n\nmail($to, $subject, $msg2, $headers);\ninclude("done.html");\n\n?>\n\n\nand make this html form\n\n<form method="POST" name="mail" action="mail.php">\n<table width="400" cellspacing="2" cellpadding="2" border="0">\n  <tr>\n    <td width=90>name:</td>\n    <td>\n<input name="name" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);" size="1"></td>\n  </tr>\n<tr>\n    <td width=90>lastname:</td>\n    <td>\n<input name="last" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160; height:17" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);" size="1"></td>\n  </tr>\n<tr>\n    <td>email:</td>\n    <td><input name="email" dir="ltr" type="text" style="border-width:1; font-family: tahoma; font-size: 1em; width: 160"></td>\n  </tr>\n<tr>\n    <td valign=top>decription:</td>\n    <td>\n<textarea name="msg" cols="28" rows="3" id="comments" style="border-width:1; font-family: Tahoma; font-size: 1em; padding-left:4; padding-right:4; padding-top:1; padding-bottom:1; width:220px;" onkeypress="return submitenter(this,event)" onkeydown="return changelang(this);"></textarea></td>\n  </tr>\n<tr>\n    <td></td>\n    <td><input type="submit" value="submit" name="submit" style="font-family: Tahoma; font-size: 1em"></td>\n  </tr>\n</table>\n</form>\n\nalso make done.html and put your tanx message in it
918918
Try the code below\n\nfor the java script:\n\nfunction checkLogin (form) {\nif (form.username.value == "admin") {\nif (form.password.value == "admin1") {\nlocation = "http://www.yahoo.com";\n} else {alert("Invalid username or password.");}\n}\nelse if (form.username.value == "user") {\nif (form.password.value == "user1") {\nlocation = "http://www.google.com";\n} else {alert("Invalid username or password.");}\n}\nelse {alert("Invalid username or password.");}\n}\n\nand for the form:\n\n<form>\n\nName<input type="text" name="username">\nPass<input type="text" name="password">\n<input type="submit" value="Go!" onClick= "checkLogin(this.form); return false">\n\n</form>\n\nNote: There are some minor (important) modifications.\n\nHope this helps :-)
649885
First, you have to set up your database according to their instructions at:\n\nhttp://help.godaddy.com/article.php?article_id=36&topic_id=&&\n\nThen you'll need to get the hostname, username and password for your database at:\n\nhttp://help.godaddy.com/article.php?article_id=216&topic_id=&&\n\nThen you should be able to copy/paste this code into a PHP script to test it:\n\n<?php\n//Sample Database Connection Syntax for PHP and MySQL.\n\n//Connect To Database\n$hostname="mysql.secureserver.net";\n$username="your_dbusername";\n$password="your_dbpassword";\n$dbname="your_dbusername";\n$usertable="your_tablename";\n$yourfield = "your_field";\nmysql_connect($hostname,$username, $password);\nmysql_select_db($dbname);\n\n# Check If Record Exists\n\n$query = "SELECT * FROM $usertable";\n\n$result = mysql_query($query);\n\nif($result)\n{\nwhile($row = mysql_fetch_array($result))\n{\n$name = $row["$yourfield"];\necho "Name: ".$name."\n";\n}\n}\n?>\n\nMake sure you have the CORRECT hostname, username and password!\n\nGood luck!
881623
In solution of first question you have to first check PHP configuration with Apache server. The cause of your problem is PHP is not configured properly into Apache.\n\nThe configuration of PHP 5.2 on Apache 2.2 is somewhat different then the older versions of PHP & Apache. So it's better to understatnd the steps carefully. You can refer PHP manual from PHP site.\n\nhttp://www.php.net/manual/en/\n\nIf you are a beginner for PHP & Apache then I suggest you to use Wamp Server instead of installing PHP, Apache & MySQL saperatly. Wamp Server combines Apache, MySQL & PHP and intallation is quite simple. It automatically configure Apache & PHP. Wamp Server is available free at\n\nhttp://www.wampserver.com/en/download.php\n\nIn the solution of the second question:\n\napply this code:\n\n<?php\n    $dbHost = "localhost"; // It is the host where database is installed\n    $dbUser = "root"; // It is the username which have permission to use the database\n    $dbPassword = "abcdef"; // It is the password which is set for the specified username\n    $dbName = "userinfo"; // It is the schema or database name which stores your user data\n    \n    $dbHandle = mysql_connect($dbHost, $dbUser, $dbPassword);\n    if($dbHandle = NULL)\n        die("Database connection failed");\n\n    mysql_select_db($dbName);\n\n    /* Initialise $userName here according to your login information */\n\n    $query = "SELECT user_id FROM users WHERE user_name = $userName";\n    $result = mysql_query($query);\n    $row = mysql_fetch_array($result);\n?>\n\n<HTML>\n<BODY>\n<P>User ID: <?=$row[user_id]?></P>\n</BODY></HTML>
613846
Well if you want a javascript code, then simply generate a 6 to 8 digit number when they goto your website.\n\nTry using PHP's session function.\nIt has a function just for Sessions\nsession_id([string]);\n\n :-)\n\n -Void