Posted by David Haynes on 01/03/06 12:01
Leszek wrote:
> Hi.
>
> I want to send a variable to my script using url.
> I don't know why but echo in "szczegoly.php" display nothing...
>
> // strona1.php
> <A HREF=\"./szczegoly.php?nazwah=$nazwa_hotelu\">$nazwa_hotelu</A>
>
> //szczegoly.php
> <?php
> echo "<p>{$_GET['nazwah']}</p>";
> ?>
>
> What's wrong?
>
> Thanks.
> Leszek
>
>
Simple things first:
If you change szczegoly.php to the following:
<?php
echo "GET SET<br>\n";
echo "<pre>\n";
print_r($_GET);
echo "</pre>\n";
?>
what do you get?
[Back to original message]
|