<?php require 'webgrep.php'; $grepper = new Grepper(); $searchTerm = $_POST['string']; $url = $_POST['url']; $ignoreHtml = (bool) $_POST['ignoreHtml']; if ($_POST['url']) { $grepper->gatherLinks($url); } ?> <html> <head> <title>Grep the world!</title> <link rel="stylesheet" href="style.css"> <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> <script src="jquery.highlight-5.js"></script> </head> <body> <main> <section> <form method="POST"> <div> <h2>URL</h2> <input type="url" required name="url" placeholder="www.domain.com"> </div> <div> <h2>Search Term</h2> <input required name="string" placeholder="Enter the string to search for">