PHP Flashcards
What is used to sanitize data?
HTML entities function
What does the action attribute of a form contain?
Address of the PHP script
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
Name: <br></br>
Email: <br></br>
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
Hello <br></br>
Your email is <br></br>
What is an XSS attack?
Cross site scripting is when a vulnerability is used to allow hackers to inject client side scripts into web pages
Give examples of input elements
Type
Name
MaxLength
PlaceHolder
Write PHP to check if data that came through by post under name is empty
Write HTML to check if the username input is empty
Give examples of different input types
Text
Radio Buttons
Checkbox
Button