Use your mouse to highlight on the question to see the answer for each question
Which of the following type of style sheet can change the look of an entire website? answer is D
Question 2(1 point)
Which of the following are some advantages of CSS? (There are more than 1 answers) answer is A, C, D
Question 3(1 point)
The telephone number input field does not allow empty field. What is written in the input field tag to enable that? answer is D
Question 4(1 point)
Which of the following is NOT a server-side scripting language?
answer is B
Question 5(1 point)
Given the following html codes, what is the purpose of the attribute "alt" ?
<img src="img_chania.jpg" alt="Flowers in China"> answer is D
Question 6(1 point)
Which of the following is TRUE?answer is C
Question 7(1 point)
Which one of the following HTML codes is correct on HTML Links? answer is B
Question 8(1 point)
Notice that the name input field was "greyed" out and disallowed user to change the name. However, it would still be submitted to the webserver. What is written in the input field tag to enable that?
answer is C
Question 9(1 point)
What is a CSS Selector?
answer is C
Question 10(1 point)
I have an external CSS style sheet file, named "myStyle.css".
In which HTML element should I embed this HTML code, in order for me to apply this style sheet to my HTML page?
Simple Login Example I have created this simple Login Example and intentionally leave it as the kind of login that is subject to hacking using SQL injection technique. I will discuss on SQL injection later. XAMP server side (PHP) Database create table users( userid varchar (20) primary key , password varchar (80) not null ); insert the data userid as 'test' and password as '1234' for testing INSERT INTO `users`(`userid`, `password`) VALUES ('test','1234') PHP Step 0: Create db_connect.php ( Refer to Lab2) Step1 :Create a loginTest.php <<< Server Side>>> loginTest.php <?php // check for post data if ( isset ( $_POST [ "id" ])) { $id = $_POST [ 'id' ]; $pw = $_POST [ 'pw' ]; // include db connect class require_once __DIR__ . '/db_connect.php' ; // connecting to db $db = new DB_CONNECT(); $db -> connect (); ...
Comments
Post a Comment