Gossamer Forum
Home : General : Internet Technologies :

$HTTP_POST_VARS

Quote Reply
$HTTP_POST_VARS
Hi...I'm just wondering if anyone had any idea on how to assign all the variables grabbed from $HTTP_POST_VARS to their own variables?

i.e $HTTP_POST_VARS['action'] would simply be called $action.

The reason I need to do this, is because it seems that some servers have a weird security feature installed, whereas they won't let you call variables like $action Frown

At the moment I have this code;

Code:
foreach($HTTP_POST_VARS as $thing => $var) {

$$thing = $HTTP_POST_VARS[$var];
echo "assigning \$$thing to $var <BR>";

}

Now, that doesn't seem to be working right, in assigning the variables.

Has anyone ever had to do this, and if so, would you mind sharing how?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread $HTTP_POST_VARS Andy 7028 Nov 7, 2002, 3:59 AM
Post Re: [Andy] $HTTP_POST_VARS
Andy 6758 Nov 7, 2002, 4:15 AM
Post Re: [Andy] $HTTP_POST_VARS
Alex 6732 Nov 7, 2002, 11:15 AM
Thread Re: [Andy] $HTTP_POST_VARS
brewt 6795 Nov 7, 2002, 3:00 PM
Post Re: [brewt] $HTTP_POST_VARS
Andy 6764 Nov 7, 2002, 3:17 PM