PHP Flashcards

1
Q

What is used to sanitize data?

A

HTML entities function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the action attribute of a form contain?

A

Address of the PHP script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Write HTML to set up a form to take in the name and the email of a person, data should be sent to welcome.php

A

Name: <br></br>
Email: <br></br>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Write PHP to receive data in from the HTML form that has sent across name and email via the post method
Display name and email to the user

A

Hello <br></br>

Your email is <br></br>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an XSS attack?

A

Cross site scripting is when a vulnerability is used to allow hackers to inject client side scripts into web pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give examples of input elements

A

Type
Name
MaxLength
PlaceHolder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Write PHP to check if data that came through by post under name is empty

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Write HTML to check if the username input is empty

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Give examples of different input types

A

Text
Radio Buttons
Checkbox
Button

How well did you know this?
1
Not at all
2
3
4
5
Perfectly