Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Retrieve the Original Query String
How To Retrieve the Original Query String? - PHP Script Tips - Processing Web Forms
✍: FYIcenter.com
If you have coded some values in the URL without using the standard form GET format, you need to retrieve those values in the original query string in $_SERVER['QUERY_STRING']. The script below is an enhanced version of processing_forms.php which print the original query string:
<?php print("<html><pre>"); print(" query_string = {$_SERVER['QUERY_STRING']}\n"); $count = count($_REQUEST); print("Number of values: $count\n"); foreach ($_REQUEST as $key=>$value) { if (is_array($value)) { print(" $key is an array\n"); for ($i = 0; $i < count($value); $i++) { $sub_value = $value[$i]; if (get_magic_quotes_gpc()) { $sub_value = stripslashes($sub_value); } print(" ".$key."[".$i."] = ".$sub_value."\n"); } } else { if (get_magic_quotes_gpc()) { $value = stripslashes($value); } print(" $key = $value\n"); } } print("</pre></html>\n"); ?>
2007-04-22, 4553👍, 0💬
Popular Posts:
Where Is the Submitted Form Data Stored? - PHP Script Tips - Processing Web Forms When a user submit...
How To Empty Your Recycle Bin? - Oracle DBA FAQ - Managing Oracle Database Tables If your recycle bi...
What is Concern in AOP? gA concern is a particular goal, concept, or area of interesth There are m...
If we inherit a class do the private variables also get inherited ? Yes, the variables are inherited...
What is difference between ADPATCH and OPATCH ? # ADPATCH is utility to apply ORACLE application Pat...