Quick Search:
Oracle PL/SQL Code Library
Find Or Post Oracle Jobs
Oracle Discussion & Chat
 PHP Code: GET and POST variables in hidden form Jump to:  
Category: >> PHP Code >> GET and POST variables in hidden form Bookmark and Share

<< lastnext >>

Snippet Name: GET and POST variables in hidden form

Description: A class to put get and post variables in hidden form.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<? php
CLASS  c_HiddenVars  { 
        FUNCTION  display($a)  { 
                $c  =  COUNT($a); 
                FOR  ($i  =  0,  RESET($a);  $i  <  $c;  $i++,  NEXT($a))  { 
                        $k  =  KEY($a);  $v  =  $a[$k]; 
                        IF  (IS_ARRAY($v))  { 
                                $vc  =  COUNT($v); 
                                FOR  (RESET($v),  $vi  =  0;  $vi  <  $vc; $vi++,  NEXT($v))  { 
                                        $vk  =  KEY($v); 
                                        ECHO  "<input  type=hidden  name=\"$k\[$vk\]\"  value=\"".HTMLSPECIALCHARS($v 
[$vk]). "\">\n"; 
                        }  ELSE  { 
                                ECHO  "<input  type=hidden  name=\"$k\"  value=\"".HTMLSPECIALCHARS($v). "\">\n"; 
        FUNCTION  get()  { 
                GLOBAL  $HTTP_GET_VARS; 
                IF  (IS_ARRAY($HTTP_GET_VARS))    {  $this->display 
        FUNCTION  post()  { 
                GLOBAL  $HTTP_POST_VARS; 
                IF  (IS_ARRAY($HTTP_POST_VARS))  {  $this->display 
        FUNCTION  all()  { 

Oracle Magazine
and Oracle White Papers

SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 39 users online    © 2009 psoug.org

Forgot your password?