Visual C++ Tutorial 4 -Windows Forms Application: Create Login Form with MySql Part 1




Login Program for C++ with Mysql c++ program to connect to mysql php login code mysql Login Source Codes create login page contain user id,password …

Original source


18 responses to “Visual C++ Tutorial 4 -Windows Forms Application: Create Login Form with MySql Part 1”

  1. I want to create a working ATM application using windows form application.
    How can I use this condition in windows form
    If userid ==1234 then go to form2
    if pin==3456 then go to form3

    Please answer me @ProgrammingKnowledge
    Plz answer!!!!!

  2. can you make a Set of video tutorial about, Visual C++2008 connected to SQL SERVER 2008?, Including SHOW DATA, ADD NEW, EDIT, DELETE, RETRIEVE PICTURES from SQL Server, ADD and DELETE PICTURES TO DATABASE, VIDEOS FROM SQL Server ……………………………………………………………………………………………………………………………………………………………………………………………………………………..
    we'll be thankful if you do. Students from the Philippines 😀

  3. While this code will work, it will open up your application to SQL injection attacks,
    Instead of writing

    MySqlCommand^ cmdDataBase = gcnew MySqlCommand("SELECT * FROM database WHERE user_name= '"+this->username_txt->Text+"' AND password= '"+this->password_txt->Text+"';", conDataBase);

    You should write something like

    MySqlCommand^ cmdDataBase = gcnew MySqlCommand("SELECT * FROM database WHERE user_name=@Name AND password=@Password;", conDataBase);

    and then add 2 new lines of code like so

    cmdDataBase->Parameters->AddWithValue("@Name", username_txt->Text);
    cmdDataBase->Parameters->AddWithValue("@Password", password_txt->Text);

    You can add this code in between

    conDataBase->Open();
    {ADD THE CODE HERE}
    myReader = cmdDataBase->ExecuteReader();

    This will stop inputs like [  anything' OR 'x'='x  ]  giving access to your program anyway.

  4. hello great tutorial series ….. would you know how to get data from the webBrowser container into a text box so data can be extracted and written to the mysql database, regards and thank you for you detailed videos

Leave a Reply