I am trying to work through a PHP book that I bought a year or so ago,
"Essential PHP" by Christopher Cosentino. In the beginning of the
book, after the Hello, World .php file, you get to a two-parter : a
form that sends it's results to another .php file, that then displays
those results.
Nothing I have been able to do has gotten this type of passing to
work. Checking the URL string for the second page, it properly shows
the values :
However, when I refer to $first_name or $address from the second .php
file, they always render as empty (NULL). I cannot figure out why
this relatively simple case is not working; I can define local
variables and output them, however, I cannot pull the variables from
the URL string, so I can't work with forms.
I'm using a default Redhat 9 install, that came with Apache and PHP
preconfigured. I have made a few unrelated changes to Apache (setting
up SSL, etc) - is there something that needs to be done to get PHP to
work with variables?
Any ideas? I'm at my wit's end...
Thanks a lot!
-- Brian
"Essential PHP" by Christopher Cosentino. In the beginning of the
book, after the Hello, World .php file, you get to a two-parter : a
form that sends it's results to another .php file, that then displays
those results.
Nothing I have been able to do has gotten this type of passing to
work. Checking the URL string for the second page, it properly shows
the values :
However, when I refer to $first_name or $address from the second .php
file, they always render as empty (NULL). I cannot figure out why
this relatively simple case is not working; I can define local
variables and output them, however, I cannot pull the variables from
the URL string, so I can't work with forms.
I'm using a default Redhat 9 install, that came with Apache and PHP
preconfigured. I have made a few unrelated changes to Apache (setting
up SSL, etc) - is there something that needs to be done to get PHP to
work with variables?
Any ideas? I'm at my wit's end...
Thanks a lot!
-- Brian
Comment