Re: Too many $_GETs?
| From: | The Disguised Jedi | Date: | Mon, 25 Apr 2005 17:19:09 +0000 |
| Subject: | Re: Too many $_GETs? | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39279@lists.php.net to get a copy of this message | ||
The browser may also have something to do with it.....
Use hidden input forms to transfer data from page to page. Uses POST and
makes for a prettier URL.
<input type="hidden" name="a" value="<?php echo $a; ?>">
<input type="hidden" name="b" value="<?php echo $b; ?>">
<input
type="hidden" name="c" value="<?php echo $c; ?>">
<input type="hidden" name="foo" value="<?php echo $foo;
?>">
<input type="hidden" name="bar" value="<?php echo $bar;
?>">
put those in the form, and change the method to POST. Then you can access
the data via the $_POST var.
<?php
echo $_POST['a'];
echo $_POST['b']; echo $_POST['c']; echo $_POST['foo']; echo
$_POST['bar'];
?>
And yes, it is that simple.
--
The Disguised Jedi
disguised.jedi@gmail.com
Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm
world-wide BABY!
PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"
Disclaimer: Any disclaimer attached to this message may be ignored. However,
I must say that the ENTIRE contents of this message are subject to other's
criticism, corrections, and speculations.
This message is Certified Virus Free