Question
Error testing locally; works fine on remote server
I was about to post that I'd hit an error when trying to
create a
conditional region in DW 8 with ASP, CF & PHP: Training from the Source.
Rather than paste the non-PHP code, I uploaded the page to my remote server.
When I browsed to the link, the error wasn't there.
I inserted the code for the conditional region just before the opening
<form> tag, as the book instructed (Lesson 6).
<?
if ($_GET['error'] == "notnumeric")
{
echo "<p>*** Error! One or more fields was left blank or contained a
non-numeric character.</p>";
}
?>
When I preview locally, the page appears correctly, but with the following
message before the form:
Notice: Undefined index: error in C:\Program Files\Apache
Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice.php on
line 27
Line 27 is where the "if" statement starts.
On my remote server, everything works as it should:
http://www.feathertheweb.com/newland/Lesson06/Start/newland-php/tourprice.php
Any help is appreciated.
Thanks,
--
Heather
conditional region in DW 8 with ASP, CF & PHP: Training from the Source.
Rather than paste the non-PHP code, I uploaded the page to my remote server.
When I browsed to the link, the error wasn't there.
I inserted the code for the conditional region just before the opening
<form> tag, as the book instructed (Lesson 6).
<?
if ($_GET['error'] == "notnumeric")
{
echo "<p>*** Error! One or more fields was left blank or contained a
non-numeric character.</p>";
}
?>
When I preview locally, the page appears correctly, but with the following
message before the form:
Notice: Undefined index: error in C:\Program Files\Apache
Group\Apache2\htdocs\newland\Lesson06\Start\newland-php\tourprice.php on
line 27
Line 27 is where the "if" statement starts.
On my remote server, everything works as it should:
http://www.feathertheweb.com/newland/Lesson06/Start/newland-php/tourprice.php
Any help is appreciated.
Thanks,
--
Heather
