Re: Carrying Variables

From: Date: Sat, 15 May 2004 11:08:41 +0000
Subject: Re: Carrying Variables
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-186290@lists.php.net to get a copy of this message
That is it! Thank you very much! "Torsten Roehr" <roehr@zilleon.com> wrote in message news:20040515105659.26117.qmail@pb1.pair.com... > "Ronald "The Newbie" Allen" <sesel@omantel.net.om> wrote in message > news:20040515105345.9150.qmail@pb1.pair.com... > > This is what I have > > insert_into_the_database.php > > <META HTTP-EQUIV="refresh" > > content="10; URL=./check.php?<? $_POST['Event_Type'] ?>"> > > You have to assign the value to a variable (name) and print the POST value > with '<?=' (short form for echo): > > <META HTTP-EQUIV="refresh" content="10; URL=./check.php?Event_Type=<?= > $_POST['Event_Type']; ?>"> > > This should work. > > Regards, Torsten > > > </head> > > > > check.php > > <? > > $event = $_GET['Event_Type']; > > echo "$event"; > > ?> > > > > This is still not working for me > > > > "Torsten Roehr" <roehr@zilleon.com> wrote in message > > news:20040515103443.56741.qmail@pb1.pair.com... > > > "Ronald "The Newbie" Allen" <sesel@omantel.net.om> wrote in > > > message > > > news:20040515085338.83093.qmail@pb1.pair.com... > > > > How would I carry a variable from one page to another > > > > > > > > Here is what I mean > > > > > > > > I have a send.php page and this is sent to > > > > insert_into_database.php where the values of the previous page are > > > inserted > > > > into the database. > > > > I then use a meta=refresh to go to another page and evaluate the > > variable. > > > > The problem is that I do remember how to carry the variable. I > believed > > > > that I used the meta before to carry it, but unsure. Any help would > be > > > > appreciated! > > > > > > This could be done via GET by appending the values to the target URI: > > > > > > insert_into_database.php?value1=$value1&value2=$value2&value3=$value3 > > > > > > On the next page you acces those values via: > > > $_GET['value1'] > > > $_GET['value2'] > > > $_GET['value3'] > > > > > > Here's the corresponding manual: > > > > > http://de3.php.net/manual/en/reserved.variables.php#reserved.variables.get > > > > > > Hope this helps. > > > > > > Regards, Torsten

« previous php.general (#186290) next »