Re: POST Params - getting unknown

From: R. Rajesh Jeba Anbiah (ng4rrjanbiah_at_rediffmail.com)
Date: 12/15/03


Date: 14 Dec 2003 21:36:56 -0800

lreilly@lanl.gov (Leester) wrote in message news:<54b56124.0312071428.4c2a525b@posting.google.com>...

> In a nutshell, the application transmits to
> http://myserver.com?this=that&that=theOther, where my script grabs the
> post data. I want to modify my script to save the actual POST url into
> the database so I can see all of the POST parameter names.

    If I understand you right....

<?php
$post_vars = '';
if ($_POST)
        {
                foreach($_POST as $key=>$value)
                        {
                                $value = urlencode(stripslashes($value));
                                $post_vars .= "&$key=$value";
                        }
                $post_vars = substr($post_vars, 1); //remove the first "&" from the
string
        }
echo 'POST variables in string: '. $post_vars;
?>

-- 
  "Silence is the only right answer for many wrong questions" --
G.K.Moopanar, Politician
Email: rrjanbiah-at-Y!com


Relevant Pages

  • Re: Function that returns date of file.
    ... string after the date/time when it is used by itself. ... Is that your entire script? ... I make an IF statement that required the 'equals equals'. ... designed database your job will be all that much harder. ...
    (alt.php)
  • Re: How to genericaly search the entire db for any text string in any stored procedure, function, ta
    ... Hmmm... ... This script will quickly generate DML to search all the tables in the ... current database for a given string. ...
    (microsoft.public.sqlserver.connect)
  • Renaming variables using strings
    ... I have a big database with several variables inside. ... i have a variable in database called F101 and the script ... makes a string 'F101'. ... I would like to rename the variable F101 as ...
    (comp.soft-sys.matlab)
  • Re: Renaming variables using strings
    ... > I have a big database with several variables inside. ... i have a variable in database called F101 and the script ... > makes a string 'F101'. ... I would like to rename the variable F101 as ...
    (comp.soft-sys.matlab)
  • Re: A little Rolodex [revised]
    ... including alpha sort and searching for any embedded string, ... In this application, a database is a directory, ... you may optionally provide any alternate UCASE program, ... NN -> first store NN as key length ...
    (comp.sys.hp48)