Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WEB SECURITY MISCONCEPTIONS
- ==========================
- SCRIPTING LANGUAGES
- ===================
- Methods used in Scripting Languages
- ===================================
- 1. GET = It shows Data which is being traveled from Server to Clients in the URL only. It is the unsecured method of data travelling between client and server.
- 2. POST = It doesn't show anything in the URL that fromwhere that data is travelling.
- Client Side Scrippting
- ======================
- The scripting programming language we are gonna be using is HTML.
- HTML --> Hyper text markup language
- ====
- Hyper Text Transfer Protocol
- ||
- Hyperlinks
- This is the application used for creating client side web pages.
- HTML PRACTICALS
- ================
- 1. Starting of html scripting
- <html>
- ...
- ... Tell me the code written is in HTML
- ...
- </html>
- <head>
- ..
- .. It is used to define the header like title of the web page,name in the tab
- </head>
- <title> ......
- Name of the Title
- ...</title>
- <body>
- ...
- ... Used for the content of the web page
- ...
- </body>
- 5. Heading = Used to provide the heading
- <h1> - <h6>
- As the number increases the font size decreases.
- <h1>Heading</h1>
- <h2>Heading</h2>
- <h3>Heading</h3>
- HTML TAGS
- =========
- <p> = Paragraph
- <br> = Break Statement
- <ul> = Helps in indentation
- <ahref> = Hyperlink Reference
- <b> = Bold
- <btn> = Button
- <a> = Action
- <li> = Line
- <h1> = Heading
- <imgsrc> = Image Source
- <form action> = Form Clicking Action
- Basicpage.html
- ==============
- <html>
- <head>
- <title>Basic</title>
- </head>
- <body>
- <a href="http://www.lucideus.com"><h1>Ethical Hacking</h1></a>
- <h2>Black Hat Hacker</h2>
- <p>These are the bad guys.<br>
- They Just Work For money.<br>
- They bring chaos to the cyber world.<br>
- Very Very Bad guys.</p>
- <h2>White Hat Hacker</h2>
- <h3>Script Kiddies</h3>
- <h3>N00bZ</h3>
- <img src="pooh.jpg">
- <form action="secpage.html">
- First Name: <input type="text"><br>
- Last Name : <input type="text"><br>
- Username : <input type="text"><br>
- Password : <input type="password"><br>
- <input type="submit" value="submit">
- </form>
- </body>
- </html>
- =============
- Secpage.html
- =============
- <html>
- <head>
- <title>Welcome</title>
- </head>
- <body>
- <h1>Hello user, you are welcome to my web site</h1>
- </body>
- </html>
- ** NOTE : Its not neccessary to close the tags i.e. </html> or </body>
- the browser will automatically close it during its running state.
- -------------------------------------------------------------------------------------
- Server Side Scripting
- =====================
- This language is only used to maintain and coonfigure Server Side Scripting. eg. PHP
- PHP
- ===
- <?php = Showing the starting of a php code
- ?> = It is the end of the php code
- $ = to create a variable
- variable is a datatype in which we are stroring a value.
- $number = It is a variable and I can store anything in it.
- For Printing = "echo"
- echo "Welcome to Lucideus"
- -----------------------------------------------------------------------------------------
- Program of Addition of two numbers Through PHP and HTML
- =======================================================
- HTML CODE = hello.html
- <html>
- <head>
- <title>Hello</title>
- </head>
- <body>
- <form action=calc.php method="post">
- First Number <input type="text" name="first" id="first"><br>
- Sec Number <input type="text" name="sec" id="sec"><br>
- <input type="submit">
- </form>
- </body>
- </html>
- PHP CODE = calc.php
- <html>
- <head>
- <title>add</title>
- </head>
- <body>
- <?php
- $one = $_POST['first'];
- $two = $_POST['sec'];
- $sum = $one + $two;
- echo "The sum is";
- echo $sum;
- ?>
- </body>
- </html>
- WEBSITES TO PRACTISE:
- 1.w3school.com
- 2.Tutorialpoint.com
Add Comment
Please, Sign In to add comment