Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hello , today i will start a new tutorial about html and php , to create a smaaaall hhhh xD , a small social network , and after that we will create its android app , which means if we create an account using app we can connect with it (the account) using the website , let's start , ENJOY
- 1-The software that we need to create the website:
- -NotePad++
- -WAMPServer
- -and some web browser
- i have firefox,chrome, internet explorer,
- the download links are in the discription :)
- let's start a simple html login form ,
- create a folder name it project create a file : login.php
- open it with NotePad++
- insert the <html><head></head><body></body></html>
- in the head we will insert the title
- you can't launch php files directly by clicking
- like this
- we will put the folder "project" in the localhost folder
- this folder is in :
- C:\wamp\www
- so our project folder will be
- C:\wamp\www\project
- now open the browser
- and enter :
- localhost
- **if you have no result check your wamp server
- if the wampserver icon is GREEN
- this means that it is OK
- so the link to our page will be
- http://localhost/project/login.php
- the result is a white page named "Login"
- and that's the title
- now we will insert the <input>
- of course in <body></body>
- we start by addin form
- the result will be like
- <body>
- <form>
- <input>
- <input>
- <input>
- </form>
- </body>
- add the action and the method to the <form>
- <form action="" method="post">
- action is the page that we want to send the email and password to
- method is the method how to send them
- <input> the first input will be for the email adress
- so we will change it to
- <input name="email" type="email" placeholder="Enter your email here">
- the second input will be for the password
- <input name="pwd" type="password" placeholder="Your password">
- the third input is the submit button
- <input type="submit" value="Connect" name="submit">
- we add some <br> to go to the next line
- add a title <h1> right under the <body>
- <h1>Welcome</h1>
- in the next video we will create the register page
- after that we will add the php code to these two pages
- to do this we need to create our data base , see you in the next video
- bbye ;)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement