Posted by David Haynes on 01/03/06 13:47
Leszek wrote:
> <?php
> echo "<p>{$_GET['nazwah']}</p>";
> ?>
> gives
> Array
> (
> [nazwah] => ALEXANDER
> )
> so now if i want to echo this value - can it be:echo {$_GET['nazwah']};
> ??ThanksLeszek
>
>
If you want to echo it then you can use:
echo $_GET['nazwah']."<br>\n";
or
printf('%s<br>\n', $_GET['nazwah']);
If you want to use set some default value if it is not set, you can do
something like:
$my_value = isset($_GET['nazwah']) ? $_GET['nazwah'] : 'default value';
-david-
Navigation:
[Reply to this message]
|