Hello,
url querystring is'nt work on my xampp (on 2 pc's, WXP and sp2)
php and mysql works fine..
[URL] http://localhost/xampp/test.php?id=6
<?
echo"id=$id";
?>
local result:
id=
Someone knows this problem?
<?php
echo "id={$_GET['id']}";
?>
Dave_L wrote:Your code will only work if the PHP parameter register_globals is on, which is a bad practice.
Try this:
- Code: Select all
<?php
echo "id={$_GET['id']}";
?>
Users browsing this forum: No registered users and 205 guests