Re: Reposting elseif carry
| From: | Curt Zirzow | Date: | Sun, 16 May 2004 18:34:28 +0000 |
| Subject: | Re: Reposting elseif carry | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186362@lists.php.net to get a copy of this message | ||
* Thus wrote Ronald The Newbie Allen (sesel@omantel.net.om):
> While I am sure that you are right. I went to the webpages that you
> identified and did not see anything on' and ". I tried the code that typed
> up and it said that Date_and_Time wher and undefinded index and also that
> the headers could not be modified.
http://www.php.net/manual/en/language.types.string.php
As noted in that document:
$var = 'a value';
$array['key'] = 'has this value';
echo "var is $var, and array {$array['key']}";
output:
var is a value, and array has this value
echo 'var is $var, and array {$array[\'key\']}';
output:
var is $var, and array {$array['key']}
The undefined index is because $_POST['Date_and_Time'] is not set,
you're probably using the form method GET so it will be defined in
$_GET instead, for more info on this see:
http://www.php.net/manual/en/language.variables.external.php
The headers couldn't be modified becase php sent the notice of
undefined index to the browser, stop that notice and the header()
redirect will work properly.
>
> the base_url is this suppose to be an I or and L
> $base_url .= dirname($_SERVER['REQUEST_UR I ']);
it is 'I' as in Identifier.
URL: http://servername/path/to/file
URI: /path/to/file
Curt
--
"I used to think I was indecisive, but now I'm not so sure."