Tell me how can we automatically escape incoming data?
Answer / Amol Kumar
In PHP, you can use functions like n`htmlspecialchars()`, `addslashes()`, and `escapeshellcmd()` to automatically escape incoming data depending on the context (HTML, SQL, command line).
| Is This Answer Correct ? | 0 Yes | 0 No |
What is php session id?
How is it possible to propagate a session id?
Why do we use htaccess
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
When you will get the error "Cannot add header information"?
What are the advantages of triggers in php?
how can i upload only pdf files in my website? files has not a pdf extension mantioned
What is rtrim php?
Write logic to print Floyd's triangle in PHP?
What is an example of a variable?
How can we get second of the current time using date function?
What are the three classes of errors that can occur in php?