Do a little debugging.  The error is easy to spot......

Ok, wrote the following code, but get a parse error line 74 (last part of
the code):

if (empty($navn) || empty($addresse)  || empty($postnummer)  || empty($sted)
|| empty($epost))

{
 include("head.inc");
} <--- GET RID OF THIS!!!!!

   if (empty($navn)){
      echo("Du fylte ikke ut <span class=\"formfelt\">navn</span>.<br>
<blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake til
skjemaet</a></blockquote>");

   }
   if (empty($addresse)){
       echo("Du fylte ikke ut <span class=\"formfelt\">addresse</span>.<br>
<blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake til
skjemaet</a></blockquote>");

   }

   if (empty($postnummer)){
       echo("Du fylte ikke ut <span
class=\"formfelt\">postnummer</span>.<br> <blockquote>&raquo; <a
href=\"m_skap.html\" class=\"linkdot\">Tilbake til
skjemaet</a></blockquote>");

   }


   if (empty($sted)){
       echo("Du fylte ikke ut <span class=\"formfelt\">sted</span>.<br>
<blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake til
skjemaet</a></blockquote>");

   }


   if (empty($epost)){
       echo("Du fylte ikke ut <span class=\"formfelt\">e-post</span>.<br>
<blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake til
skjemaet</a></blockquote>");

   }
 include("foot.inc");
}

What's wrong here?














T> if ($sted == ""){
T>   include("head.inc");
T>      echo("Du fylte ikke ut <span class=\"formfelt\">sted</span>.<br>
T> <blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake
til

T> skjemaet</a></blockquote>");
T>   include("foot.inc");
T>      $Envoi = 0;
T> }
T> else {
T>      $MailBody .= "Sted : $sted\n";
T> }
T> if ($telefon == "0"){
T>   include("head.inc");
T>      echo("Du fylte ikke ut <span
class=\"formfelt\">telefonnummeret</span>

T> ditt.<br> <blockquote>&raquo; <a href=\"m_skap.html\"
class=\"linkdot\">>Tilbake til skjemaet</a></blockquote>");
T>   include("foot.inc");
T>      $Envoi = 0;
T> }
T> else {
T>      $MailBody .= "Telefon : $telefon\n";
T> }
T> if ($epost == ""){
T>   include("head.inc");
T>      echo("Du fylte ikke ut <span
class=\"formfelt\">e-postaddressen</span>

T> din.<br> <blockquote>&raquo; <a href=\"m_skap.html\"
class=\"linkdot\">>Tilbake til skjemaet</a></blockquote>");
T>   include("foot.inc");
T>      $Envoi = 0;
T> }
T> else {
T>      $MailBody .= "E-post : $epost\n";

T> }
T> if ($kommentarer == ""){
T>   include("head.inc");
T>      echo("Du fylte ikke ut <span
class=\"formfelt\">kommentarer</span>.<br>

T> <blockquote>&raquo; <a href=\"m_skap.html\" class=\"linkdot\">Tilbake
til

T> skjemaet</a></blockquote>");
T>   include("foot.inc");
T>      $Envoi = 0;
T> }
T> else {
T>      $MailBody .= "Kommentarer : $kommentarer\n";

T> }



--
Best regards,
Martin                            mailto:corwin@;corwin.sk






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to