Re: passing a variable between URL's

From: Date: Tue, 15 Apr 2003 20:16:50 +0000
Subject: Re: passing a variable between URL's
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144017@lists.php.net to get a copy of this message
You could use Javascript, but then you could run into the issue that Javascript is turned off on the client. Something like: <a href="#" onClick="scriptfunction('varValue')">Link</a> Your javascript would then "build" the URL and activate it. document.location.href="url" What you are asking is for something to occur on the client side, PHP is server side and thus can't be used. On Tuesday, April 15, 2003, at 03:43 PM, Scott Thompson wrote:
Here is the situation. somerandomsite.org/pageA.php has a link to somerandomsite.org/pageB.php when a user clicks on the link in pageA.php, I want to set a variable and pass it to pageB.php. I have seached the docs and the only two solutions I can come up with are the use HTTP GETS or cookies. Any other solutions? Is any one solution better than the others? Also, my assumption is that PHP handles regular expressions. Any documentation on that? So far the PHP docs have yeilded few clues in the subject. Thanks, ~Scott Thompson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577


« previous php.general (#144017) next »