title: css is lost when form is submitted
body: <p>Form</p>
  
  <pre><code>&lt;form method="post" action="php/contactengine.php"&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;label for="Name"&gt;Name:&lt;/label&gt;&lt;/li&gt;
    &lt;li&gt;&lt;input type="text" name="Name" id="Name" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul id="Surname"&gt;
    &lt;li&gt;&lt;label for="Surname"&gt;Surname:&lt;/label&gt;&lt;/li&gt;
    &lt;li&gt;&lt;input type="text" name="Surname" id="Surname" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;label for="Town"&gt;Town:&lt;/label&gt;&lt;/li&gt;
    &lt;li&gt;&lt;input type="text" name="Town" id="Town" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;label for="Tel"&gt;Mob/Tel:&lt;/label&gt;&lt;/li&gt;
    &lt;li&gt;&lt;input type="text" name="Tel" id="Tel" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;label for="Email"&gt;Email:&lt;/label&gt;&lt;/li&gt;
    &lt;li&gt;&lt;input type="text" name="Email" id="Email" /&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
    &lt;li&gt;&lt;label for="Message"&gt;Message:&lt;/label&gt;&lt;br /&gt;&lt;/li&gt;
    &lt;li&gt;&lt;textarea name="Message" rows="30" cols="20" id="Message"&gt;&lt;/textarea&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;input type="submit" name="submit" value="Submit" class="submit-button" /&gt;
  &lt;input type="reset" name="reset" value="Clear" class="reset-button" /&gt;&lt;/form&gt;
  </code></pre>
  
  <p>Engine</p>
  
  <pre><code> &lt;?php
  
  $EmailFrom = "enquiry@madisonjacob.co.uk";
  $EmailTo = "james@madisonjacob.co.uk";
  $Subject = "Website communication - MadisonJacob";
  $Name = Trim(stripslashes($_POST['Name']));
  $Surname = Trim(stripslashes($_POST['Surame']));
  $Town = Trim(stripslashes($_POST['Town']));
  $Tel = Trim(stripslashes($_POST['Tel']));
  $Email = Trim(stripslashes($_POST['Email']));
  $Message = Trim(stripslashes($_POST['Message']));
  
  // validation
  
  $validationOK=true;
  if (!$validationOK) {
    print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=contact-error.php\"&gt;";
    exit;
  }
  
  // prepare email body text
  $Body = "";
  $Body .= "Name: ";
  $Body .= $Name;
  $Body .= "\n";
  $Body .= "Town: ";
  $Body .= $Town;
  $Body .= "\n";
  $Body .= "Tel: ";
  $Body .= $Tel;
  $Body .= "\n";
  $Body .= "Email: ";
  $Body .= $Email;
  $Body .= "\n";
  $Body .= "Message: ";
  $Body .= $Message;
  $Body .= "\n";
  
  // send email
  if(isset($_POST['Surame']) &amp;&amp; $_POST['Surname'] == '') {
    $success = mail($EmailTo, $Subject, $Body, "From: &lt;$EmailFrom&gt;");
  }
  
  // redirect to success page
  if ($success){
    print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=contact-thanks.php\"&gt;";
  }
  else{
    print "&lt;meta http-equiv=\"refresh\" content=\"0;URL=contact-error.php\"&gt;";
  }
  ?&gt;
  </code></pre>
  
  <p>...
  Having issues with the contact form just going to the error page without any css showing.  Think I've broken it somewhere too using some suggestions (my fault i'm sure).
  Do I have to force a refresh on initial load with a counter so that it doesn't keep on reloading (if so how is best to do this please)?
  If it's just that I'm not using the best code above then please correct me thanks.
  Surname is a hidden field (hidden by css) to stop bots using the form.
  All help much appreciated.</p>