l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
September 2: Social gathering
Next Installfest:
TBD
Latest News:
Aug. 18: Discounts to "Velocity" in NY; come to tonight's "Photography" talk
Page last updated:
2003 Feb 05 15:18

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Question about php settings and passing form data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Question about php settings and passing form data



At 06:06 PM 2/4/03 -0800, you wrote:
>Hello,
>
>I want to use a php redirector
>header('Location: http://website.nofun/redirect.....)
>and I want to pass to the page ref-ed in the URI a number of FORM variables.
>
>However, I am meeting with little luck on this.
>
>If I encode the variables as part of the URL with "&" as a separator, I
>dcan get the form data and variables that store them (names) to pass
>through to the page.

If I understand your statement correctly, you are able to do:
header('Location: http://website.nofun/redirect?Var1=$Var1&Var2=$Var2');
where Var1 and Var2 are your form variables

If not, sometimes non-alphanumeric characters can cause errors rectified by
either:
header('Location: http://website.nofun/redirect?Var1="$Var1"&Var2="$Var2";');
or
$URLVar1 = urlencode($Var1);  $URLVar2 = urlencode($Var2);
header('Location: http://website.nofun/redirect?Var1=$URLVar1&Var2=$URLVar2');

If this didn't help, maybe you could send the entire redirect commands you
have tried.

>However, use of
>$_SESSION["var_name"] = "var value";
>Does not pass the variable or data, and use of
>session_register('variable_name');
>is also proving fruitless. (I only used one or the other (_SESSION vs
>session_register()) not both.)
>
>I expect this should work, but cannot find mention of setting for
>controlling this. (I even tried avoiding the appearance int he URL by
>encoding a \r\nvarname:%20var%20value\r\n to fool the client into passing
>the URL with header data separate. No go.

Not clear what you are asking here. I hope Troy answered the question.

>Suggestions on what config settings should be examined within php to
>ensure that form data can be passed as it should, in the HTTP header with
>PHP 4.3.0?
>
>TIA
>-ME

ditto Troy's suggestion, phpinfo() should help.

-- Larry

>
>-- 
>-----BEGIN GEEK CODE BLOCK-----
>Version: 3.12
>GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++
>L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ PGP++
>t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
>------END GEEK CODE BLOCK------
>decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html
>
>
>
>
>_______________________________________________
>vox-tech mailing list
>vox-tech@lists.lugod.org
>http://lists.lugod.org/mailman/listinfo/vox-tech
>
>

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.