RE: [PHP] Trasfering a variable between two scripts

From: Date: Thu, 17 Aug 2000 09:19:07 +0000
Subject: RE: [PHP] Trasfering a variable between two scripts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12158@lists.php.net to get a copy of this message
At 01:02 AM 8/17/2000 -0500, J.R. Lillard wrote:
this may be nothing, but i usually put the value following the href in double quotes ("). to test to make sure that your detail script is running correctly, though, you might look up what should be a valid id and go directly to the url manually. so you'd have something along the lines of: http://whatever.com/document_detail.php?id=234 hmm...i don't remember if php variables are case-sensative or not. i'm a
yes, i believe that vars are case sensitive... thus $id and $ID are different. ~kurth
little rusty. so your id variable might be getting passed as $ID and you might be looking for $id. -----Original Message----- From: KALOSI, David [mailto:bkalosi@globtel.sk] Sent: Thursday, August 17, 2000 12:55 AM To: 'php-general@lists.php.net' Subject: [PHP] Trasfering a variable between two scripts I have a script written which generates a table from a Postrgre database(it lists two fields like "SELECT product_name, price FROM my database;"). I have an <A HREF=document_detail.php?ID='$id'>(where ID is the record number in the database) on each record With this links I want to call a new script which makes a "SELECT * FROM my database;", and generates the full product information. The links work fine but the output of the document_detail.php script is empty. I tried to echo the $id in this script and it showed me nothing. Can anybody Help me?????? Thanks -------------------------------------------------------- David Kalosi HelpDesk technician bkalosi@globtel.sk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer kurth@usaexpress.net http://www.usaexpress.net/kurth ICQ - 6624050 Call Sign - N1TYW PGP key available - http://www.usaexpress.net/kurth/pgp Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net (http://www.distributed.net)

« previous php.general (#12158) next »