Re: HTML not displaying after PHP include statement...

From: Date: Tue, 07 Nov 2000 16:55:32 +0000
Subject: Re: HTML not displaying after PHP include statement...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24119@lists.php.net to get a copy of this message
There was nothing in the log about a parse error, or anything at all. here's a little code... No html will display after this is run: <?if($errorcode == ""):?> <TABLE align=CENTER border=1> <TR> <TD COLSPAN="2" ALIGN="CENTER"><FONT FACE="Helvetica, Arial"><STRONG>Successful! Thank You!</STRONG></FONT></TD> </TR> <TR> <TD COLSPAN="2"><FONT FACE="Helvetica, Arial">You will receive an order confirmation via e-mail shortly. However, you should keep the following information for your records:</FONT></TD> </TR> <TR> <TD>Order ID:</TD> <TD><?echo $orderid;?></TD> </TR> <TR> <TD>Order Amount:</TD> <TD><?echo $price;?></TD> </TR> </TABLE> <?else:?> <?print_error($errormessage);?> <?endif;?> function print_error($errormessage) { $errormessage = str_replace("\\", "", $errormessage); $table = "<TABLE CELLSPACING=\"0\" CELLPADDING=\"4\" BORDER=\"0\" WIDTH=\"380\">\n"; $table .= "\t\t<TR>\n"; $table .= "\t\t\t<TD ALIGN=\"CENTER\">"; $table .= "<STRONG><FONT FACE=\"Arial, Helvetica\">There was an error processing your order!</FONT></STRONG>"; $table .= "</TD>\n"; $table .= "\t\t</TR>\n"; $table .= "\t\t<TR>\n"; $table .= "\t\t\t<TD>"; $table .= "<FONT FACE=\"Arial, Helvetica\">".$errormessage."</FONT>"; $table .= "</TD>\n"; $table .= "\t\t</TR>\n"; $table .= "\t\t<TR>\n"; $table .= "\t\t\t<TD>"; $table .= "<FONT FACE=\"Arial, Helvetica\">If this appears to be a problem with your credit card information, please go <A HREF=\"javascript:history.go(-1)\">back</A> and try again. A copy of this message has been e-mailed to the system administrator.</FONT>"; $table .= "</TD>\n"; $table .= "\t\t</TR>\n"; $table .= "\t</TABLE>\n"; echo $table; //mail("joe@jwebmedia.com", "ibuydeals Order Error!", $errormessage, "From: errors@ibuydeals.com"); } Any ideas? Thanks, Joe facosta@ops.magnux.com.br wrote: > Did you see your log? > It's probably a parse error. > ------------------------ > Frederico Augusto Costa > facosta@magnux.com.br > ------------------------ > > On Tue, 7 Nov 2000 joe@jwebmedia.com wrote: > > > I'm running into an odd problem - I have a conditional include statement > > at the bottom of my file, embedded in a table. If the condition is met, > > the include file is included, as it should be. However, any HTML that is > > after the include statement does not get executed. But, this only occurs > > when the include is included. If the condition is not met, the file is > > not included, and all HTML code displays correctly. Am I missing > > something stupid? Thanks, > > > > Joe > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24119) next »