Re: Re: .inc files doubles up
| From: | John Nichel | Date: | Tue, 29 Oct 2002 19:21:30 +0000 |
| Subject: | Re: Re: .inc files doubles up | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121924@lists.php.net to get a copy of this message | ||
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>» <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>» <a href=\"m_skap.html\" class=\"linkdot\">Tilbake til skjemaet</a></blockquote>"); } if (empty($postnummer)){echo("Du fylte ikke ut <spanclass=\"formfelt\">postnummer</span>.<br> <blockquote>» <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>» <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>» <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");tilT> echo("Du fylte ikke ut <span class=\"formfelt\">sted</span>.<br>T> <blockquote>» <a href=\"m_skap.html\" class=\"linkdot\">TilbakeT> skjemaet</a></blockquote>"); T> include("foot.inc");class=\"formfelt\">telefonnummeret</span>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 <spanT> ditt.<br> <blockquote>» <a href=\"m_skap.html\" class=\"linkdot\">>Tilbake til skjemaet</a></blockquote>"); T> include("foot.inc");class=\"formfelt\">e-postaddressen</span>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 <spanT> din.<br> <blockquote>» <a href=\"m_skap.html\" class=\"linkdot\">>Tilbake til skjemaet</a></blockquote>"); T> include("foot.inc");class=\"formfelt\">kommentarer</span>.<br>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 <spanT> <blockquote>» <a href=\"m_skap.html\" class=\"linkdot\">TilbaketilT> 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