Re: Too many $_GETs?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx

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

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux