Re: Include???
| From: | Richard Lynch | Date: | Thu, 24 May 2007 22:32:55 +0000 |
| Subject: | Re: Include??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-255582@lists.php.net to get a copy of this message | ||
On Wed, May 23, 2007 9:24 am, Dan Shirah wrote:
> Okay, I think I'm doing everything right, but for whatever reason my
> include
> isn't working.
>
> <?php
> echo $_POST['status_code'];
Perhaps there is some whitespace before/after the 'C'...
echo "'$_POST[status_code]'<br />\n";
You should then see some whitespace inside the '' so you'll know it's
there.
This is a VERY good debugging technique to adopt. :-)
> if ($_POST['status_code'] = "C") {
echo "GOT HERE!<br />";
This can distinguish between 2 possible issues: Your business logic
about "C" or the include "not working"
> include ('complete_save.php');
> }
> ?>
>
> The echo of my status_code retruns the correct value so the if should
> trigger.
>
> This is my include page:
>
> <?php
>
> echo "test";
>
> ?>
>
> VERY simple, but for some reason is not working????
Also be sure you have error_reporting(E_ALL) set, so you are seeing
any errors.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?