Answer the question
In order to leave comments, you need to log in
How to get rid of XSS from a remote page in a frame?
To simplify the example, I will give the following code
. There is a form on the page:
<form id='send' action='../lib/getpage.php' method='post' target='getpage'><br>
<input id='url' name='url' type='text' value=''><br>
</form><br>
<iframe id='getpage' name='getpage' src='' class='autoHeight' frameborder='0' scrolling='auto'></iframe><br>
<?<br>
$url = $_POST['url'];<br>
$page = file_get_html($url);<br>
echo $page;<br>
?><br>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question