Retrieve login data from mysql database and redirect to a page according to the login data matched with

<script type="text/javascript" language=javascript>

function check(login)/*function to check userid & password*/
    /*the following code checkes whether the entered userid and password are matching*/
    if (login.userNameTextBox.value == "name" && login.passWordTextBox.value == "pass") {'ViewUser.htm')/*opens the target page while Id & password matches*/
    else {
        alert("Error Password or Username")/*displays error message*/


The above code currently has a hard coded userid and password, but i need to retrieve that data from MySql database. Please help, i know my question may be redundant but please me.


Need Your Help



There was a question concerning removal of appendices in the program. I use such code:

Android fragment is not showing up

android fragment

I have the following codes in my android application:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.