RE: [PHP] "Easy question"

From: Date: Fri, 20 Oct 2000 21:05:45 +0000
Subject: RE: [PHP] "Easy question"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21483@lists.php.net to get a copy of this message
Sure. <?php $var_name_1 = "foo"; $var_name_2 = "bar"; ?> <html> ... <a href="http://someotherdomain.com/page.php?var_name_1=<?echo $var_name_1;?>&var_name_2=<?echo $var_name_2;?>"><img src="blah"></a> </html> This is a simple example. If you have a ton of variables to pass over, you might want to use a form to POST them as hidden fields. Jason > -----Original Message----- > From: Daniel Sandvold [mailto:danielsa@stud.ntnu.no] > Sent: Friday, October 20, 2000 2:59 PM > To: Jason Cox > Cc: php-general@lists.php.net > Subject: RE: [PHP] "Easy question" > > > > > I'd put it in the query string for the buttons. > > > > Jason > > have one simple example ?? > > ------------------------------------------------------------- > > > > > > If i have on site1: $var_name_1 > > > $var_name_n > > > button 1(goes to site2) , button 2(goes to site3) > > > > > > when i come i site2 or site3 how can i then access $var_name and > > > $var_name_n (no db) > > > > > > > > > > > > Daniel :) > > > > > > > > _______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net

« previous php.general (#21483) next »