RE: [PHP-DB] passing variables between forms.
| From: | Snijders, Mark | Date: | Wed, 14 May 2003 12:41:10 +0000 |
| Subject: | RE: [PHP-DB] passing variables between forms. | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-27740@lists.php.net to get a copy of this message | ||
from version 4.0 or something like that, php handles $_POST (form) and $_GET
(url) vars diferently
so try this:
print_r($_GET); (you'll see all the variables passed in the url
and try this to see yours one:
echo $_GET["ID"];
good luck
-----Original Message-----
From: Angelo Zanetti [mailto:binc2@ctech.ac.za]
Sent: woensdag 14 mei 2003 14:42
To: php-db@lists.php.net
Subject: [PHP-DB] passing variables between forms.
Hello I am new to php.
I have a table that is populated with entries. when a user clicks on 1 I
want it to open a new php form and send the ID (field in table) to the newly
opened php form.
everything seems to be working well I see that the variable is passed the
value (ID) in the URL but when I reference the variable in the called php
page the variable seems empty.
here is the anchor link from first page with table:
echo("<a href='indpaper.php?ID=" .$row["BiblioID"].
"'>");
this seems to be working fine.
the URL:
http://localhost/ebusiness/indpaper.php?ID=42
as you can see is being passed the value 42.
however when I go to the indpaper.php and try use the ID variable it is
empty,
echo("ID to delete: " . $ID );
why is it empty?? can anyone help??
thanx in advance