Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Sending a variable
- Gunnar G
January 31, 2007, 4:58 pm
rate this thread
header("Location: http://x.y.z/bar.php ?".a000=1&Vtmpfname=".$Vtmpfname;
where $Vtmpfname has a proper value, atleast I can see it if I echo it in
But in bar.php, I don't get any value for a000 or Vtmpfname.
I thought I would get those variables.
Can anyone here help me spot the error?
I didn't know sci.bio.paleontology was that low traffic until I tried read
the thread "Where is everyone?" and found it to be expired.
- Captain Paralytic
January 31, 2007, 5:11 pm
Re: Sending a variable
That's not the only thing he missed.
Let's break it down:
"Location:http://x.y.z/bar.php ?" -> string
. -> concatenate
a000 -> defined constant ?
=3D -> assignment operator
1 -> integer
& -> bitwise AND
Vtmpfname -> defined constan ?
=3D -> assignment
".$Vtmpfname; -> unclosed string.
I'd definetely say this cannot be the real code :-).
Now, anough teasing, let's help the OP:
$a000 & $Vtempfname will only be available in bar.php if register_global=
is enabled. This would not be a wise choice. To access the variables use=
$_GET['a000'] & $_GET['Vtempfname'].