What will be the value of the variable $input in the following PHP code?
<?php
$input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
$input = strip_tags($input,"<i></i>");
?>
<?php
$input = "Swapna<td>Lawrence</td>you are really<i>pretty</i>!";
$input = strip_tags($input,"<i></i>");
?>
A. Swapna Lawrence you are really pretty!
B. Swapna
C. Swapna
D. Swapna Lawrence you are reallypretty!
Answer: Option D
Solution(By Examveda Team)
Italic tags <i></i> might be allowable, but table tags <td></td> could potentially wreak havoc on a page.Join The Discussion
Comments ( 1 )
Related Questions on HTML Forms Handling
Which two predefined variables are used to retrieve information from forms?
A. $GET & $POST
B. $_GET & $_POST
C. $__GET & $__POST
D. GET & POST
A. basic sql injection
B. advanced sql injection
C. cross-site scripting
D. scripting
When you use the $_GET variable to collect data, the data is visible to.
A. none
B. only you
C. everyone
D. selected few
When you use the $_POST variable to collect data, the data is visible to.
A. none
B. only you
C. everyone
D. selected few
SwapnaLawrenceyou are reallypretty!