Gossamer Forum
Home : General : Internet Technologies :

Re: [TheIceman] Undefined Variable: Error. Why??

Quote Reply
Re: [TheIceman] Undefined Variable: Error. Why?? In reply to
How about adding something like this at the top of your scripts;

Code:
foreach($HTTP_GET_VARS as $thing => $var) { $$thing = $var; }

foreach($HTTP_POST_VARS as $thing => $var) { $$thing = $var; }

foreach($_GET as $thing => $var) { $$thing = $var; }

foreach($_POST as $thing => $var) { $$thing = $var; }

Do this with any other array of variables that you need to access as globals. Its pretty simple code that I had to write a while back, to get over a similar problem you are having now.

Hope it helps Smile

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 Undefined Variable: Error. Why?? TheIceman 19209 Dec 9, 2002, 3:22 AM
Post Re: [TheIceman] Undefined Variable: Error. Why??
yogi 18823 Dec 9, 2002, 3:31 AM
Thread Re: [TheIceman] Undefined Variable: Error. Why??
Andy 18902 Dec 9, 2002, 4:04 AM
Post Re: [Andy] Undefined Variable: Error. Why??
TheIceman 18839 Dec 9, 2002, 4:17 AM
Thread Re: [TheIceman] Undefined Variable: Error. Why??
hennagaijin 18859 Dec 9, 2002, 5:01 AM
Thread Re: [hennagaijin] Undefined Variable: Error. Why??
TheIceman 18865 Dec 10, 2002, 4:34 AM
Thread Re: [TheIceman] Undefined Variable: Error. Why??
hennagaijin 18859 Dec 10, 2002, 4:43 AM
Thread Re: [hennagaijin] Undefined Variable: Error. Why??
TheIceman 18760 Dec 10, 2002, 11:57 PM
Thread Re: [TheIceman] Undefined Variable: Error. Why??
Andy 18855 Dec 11, 2002, 3:07 AM
Post Re: [Andy] Undefined Variable: Error. Why??
brewt 18721 Dec 11, 2002, 3:14 AM
Thread Re: [hennagaijin] Undefined Variable: Error. Why??
brewt 18776 Dec 11, 2002, 3:18 AM
Thread Re: [brewt] Undefined Variable: Error. Why??
Andy 18802 Dec 11, 2002, 3:27 AM
Thread Re: [Andy] Undefined Variable: Error. Why??
brewt 18772 Dec 11, 2002, 3:30 AM
Thread Re: [brewt] Undefined Variable: Error. Why??
Andy 18827 Dec 11, 2002, 4:12 AM
Thread Re: [Andy] Undefined Variable: Error. Why??
Paul 18736 Dec 11, 2002, 4:19 AM
Thread Re: [Paul] Undefined Variable: Error. Why??
TheIceman 18763 Dec 11, 2002, 4:40 AM
Post Re: [TheIceman] Undefined Variable: Error. Why??
Andy 18780 Dec 11, 2002, 5:35 AM
Post Re: [brewt] Undefined Variable: Error. Why??
TheIceman 18745 Dec 11, 2002, 3:45 AM