title: A php web browser
body: <p>I was randomly trying to develop a web browser that works in PHP.
  I know this is a really small program if you look into it but I don't seem to get it to work. though I have worked it out, but I cant get it to display pages.</p>
  
  <p>Please have a look at my code below and tell me what I'm missing.</p>
  
  <pre><code>&lt;?php
      $address = $_GET['address']
  ?&gt;
  
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;NeXon Web&lt;/title&gt;
          &lt;link href="css/style.css" type="text/css" media="all"/&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;div id="header"&gt;
              &lt;img src="images/logo.png" id="logo"/&gt;
              &lt;img src="images/back.png" id="back" /&gt;
              &lt;img src="images/fwd.png" id="fwd"/&gt;
              &lt;form method="GET" action="index.php"&gt;
                  &lt;input name="address" type="address" id="address" placeholder="Address..."/&gt;
                  &lt;input type="submit" value="Go" id="submit"/&gt;
              &lt;/form&gt;
          &lt;/div&gt;
          &lt;div id="body"&gt;
              &lt;iframe src="&lt;?php $address ?&gt;" id="frame" height="800px" width="1100px" /&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I wrote this code, but did not seem to be getting the webpage to display. I tried both POST and GET methods.
  Please help, Im still a newbie :/</p>
  
  <p>The second code was written by someone else, who I could not contact after he told me what to do, I would need serious help in the second code,</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;style&gt;
  @import="style.css";
  &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;?php
  if($_POST){
  
  $url=$_POST['url'];
  
  
  
  }
  ?&gt;
  &lt;script language="javascript"&gt;
  
  function w(){  window.open('$url');  }
  
  &lt;/script&gt;
  
  
  &lt;div class="box"&gt;
      &lt;form method="post" action="index.php"&gt;
          Address: &lt;input type="text" name="url" id="url" class="input_text" /&gt;
          &lt;input type="submit" value="submit" class="button"&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;div class="url"&gt;
  
  
  
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>To be honest I seriously do not know how the second code is working :/</p>