05-17-2013, 10:45 PM
Hey there SL, today I'm going to show you how to make a super basic login system using PHP. First of all, open a new form and add: 3 Labels, 2 Textbox's and 1 button to your form. It should look like this:
Next, you want to double click on the button and paste this code which I will explain. Above Public Class Form1 you want to put:
After you do that, paste this code under the button click event.
Next edit where it says "yourwebsite.com/" to the url of your website. You are done with the visual basic portion now!
Alright, now we start the PHP section.
Paste that in to a new file and save it as login.php, upload it to the website you set in the visual basic app.
I have explained each line in the PHP code if you don't know what your doing.
Now all thats left to do is run your app and enter in the username and password, if you did it all right you should see this:
If you did something wrong you will see this:
If you have any questions feel free to ask!
Next, you want to double click on the button and paste this code which I will explain. Above Public Class Form1 you want to put:
Hidden Content
After you do that, paste this code under the button click event.
Hidden Content
Next edit where it says "yourwebsite.com/" to the url of your website. You are done with the visual basic portion now!
Alright, now we start the PHP section.
Hidden Content
Paste that in to a new file and save it as login.php, upload it to the website you set in the visual basic app.
I have explained each line in the PHP code if you don't know what your doing.
Now all thats left to do is run your app and enter in the username and password, if you did it all right you should see this:
If you did something wrong you will see this:
If you have any questions feel free to ask!