} curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); $result = curl_exec($ch); if ($result === false) { $result = curl_error($ch); } curl_close($ch); return $result; } ?> <?php if (isset($_POST['btnsubmit'])) { require_once 'scraper.php'; $scraper = new Scraper(); $url = $scraper->getPagePost($_POST['url']); ?> <div style="overflow-x: hidden; overflow-y: scroll; height:300px; width:100%" > <?php echo $url; ?> </div> <?php } ?> </div> </body> </html>