|
Posted by Marty Meyers on 10/02/16 11:37
"Jim Michaels" <jmichae3@yahoo.com> wrote in message
news:XtSdnagH-vGk61beRVn-uQ@comcast.com...
> I don't know if you realize this, but you are using the wrong brackets on
> the array $_GET['name'].
> GET is used for URL variables/fields. POST is used for the other
> "invisible" method of passing form fields. $_REQUEST[] will see form
fields
> from either method if I remember correctly.
>
> $HTTP_POST_VARS and $_HTTP_GET_VARS are deprecated (being tossed). I have
> heard someone post a complaint that it was not working in the latest PHP,
> but that seems out of style with PHP's thing for compatibility - but it's
a
> warning nonetheless.
>
> "Marty Meyers" <martym@execpc.com> wrote in message
> news:11r5i9hl23f7s0f@corp.supernews.com...
> > Hi all,
> > I have followed this thread with interest as I have almost the exact
same
> > problem. ( I am new to PHP and have inherited a project with 100's of
> > files
> > like this which I am moving to a new server). I also posted a similar
> > question which Irwin Moller answered and gave me some good tips to work
> > with. I have two differences from moriman's problem:
> > 1) I don't see ANY entries when I dump the environment variables.
> > 2) If I leave the form Method="POST", but return the variables I want
as
> > "GET" args after the "?" then $_GET('name') works.
> >
> > BTW-Moriman, Would you please post the specific's of the setting you
found
> > in the Xtami server? I'm on Apache but there might be something
similar
> > that I haven't found yet.
> >
> > What I really don't understand is why GET will work but POST doesn't.
> > TIA for any suggestions on what to look for.
> > Marty
> >
> >
-----snip------
Hi Jim,
Yep, a typo on my part with the wrong brackets when I created the email. I
use them correctly in the code.
The backward compatibility problem is accurate. I had to fix it because I
did not want to turn "register_globals" in php.ini 'on'.
My problem with the POST variables turned out to be a problem with the
"sitepreview" that is being used to test the new server. Someone else was
able to find the problem and got it fixed. I don't know the details yet. I
don't know what "sitepreview" is or what it involves.
I'm pretty new to web programming
Thanks
Marty
Navigation:
[Reply to this message]
|