/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* PHP GET and POST Variables The following code will easily retrieve all of the GET and POST data for you and load it into appropriately named PHP variables. The same code will also work to get parameters added to the end of URLs via other methods other than using GET with a form. */ foreach ($q as $qi) { if ($qi != "") { if ($val) } } { if ($val) $$key = $val; } ?>