[PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
Tine [EMAIL PROTECTED] wrote in message news:20021029171957.30722.qmail;pb1.pair.com... This is really my first major PHP encounter, and I have attempted to modify a php form mail script to include a foot.inc and head.inc file, which works fine if all required fields in the form is filled out.

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Martin Hudec
Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == ) and ($telefon == 0)why dont u make something like this? if (empty($sted) || empty($telefon)) { include header if (empty($sted)){ echo STED NOT FILLED... } if (empty($telefon)){

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
Martin Hudec [EMAIL PROTECTED] wrote in message news:18910327021.20021029184135;corwin.sk... Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == ) and ($telefon == 0)why dont u make something like this? if (empty($sted) || empty($telefon)) {

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Tine
Martin Hudec [EMAIL PROTECTED] wrote in message news:18910327021.20021029184135;corwin.sk... Hello Tine, it looks okay to me butlooks like you have met two conditions at time ($sted == ) and ($telefon == 0)why dont u make something like this? if (empty($sted) || empty($telefon)) {

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread John Nichel
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