Re: POST Params - getting unknown
From: R. Rajesh Jeba Anbiah (ng4rrjanbiah_at_rediffmail.com)
Date: 12/15/03
- Next message: R. Rajesh Jeba Anbiah: "Re: How to protect against long urls and keep them from disrupting a page"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Split string like 'something.jpg,123' into $filename and $number"
- In reply to: Leester: "POST Params - getting unknown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: R. Rajesh Jeba Anbiah: "Re: How to protect against long urls and keep them from disrupting a page"
- Previous message: R. Rajesh Jeba Anbiah: "Re: Split string like 'something.jpg,123' into $filename and $number"
- In reply to: Leester: "POST Params - getting unknown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|