Also, as far as limitations go, the following are considerations;

1. You can't pass an array using the querystring
2. Multiline variables (ie. <textarea> contents) are bad
3. There is a limit of 255 or something characters to a URI (someone?)
4. Be careful with the $_GET[] array that Tony mentions, it is only
available on more recent versions of PHP, before that it was $HTTP_GET_VARS
and a lot of people had been using just plain $var1 or whatever, assuming
that "register_globals" would always be ON in the php.ini file (which also
changed in recent versions).

HTH

Beau

// -----Original Message-----
// From: Tony [mailto:[EMAIL PROTECTED]]
// Sent: Wednesday, 10 July 2002 7:42 AM
// To: Manuel; [EMAIL PROTECTED]
// Subject: Re: [PHP-DB] A Simple Question
// 
// 
// Suppose you are using PHP.
// A link like this:
// 
// http://yourdomain.com/yourpage.php?var1=value1&var2=value2&va
// r3=value3
// 
// will do the trick.
// And in the page that receives this link (yourpage.php that 
// is), use $_GET[]
// to get the value:
// 
// $var1 = $_GET["var1"];
// $var2 = $_GET["var2"];
// $var3 = $_GET["var3"];
// 
// Tony S. Wu
// 
// 
// Manuel at [EMAIL PROTECTED] wrote:
// 
// > 
// > I recently discovered that you can pass variables through 
// hyperlinks. (I
// > didn't know this could be done) This will be very helpful 
// for the project I'm
// > working on but I cannot find any information on this subject.
// > 
// > Does anybody know where I can find information on the 
// syntax and limitations
// > of this feature? 
// > 
// > 
// > 
// > ---------------------------------
// > Do You Yahoo!?
// > New! SBC Yahoo! Dial - 1st Month Free & unlimited access
// 
// 
// 
// 
// -- 
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
// 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to