httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howarth, Richard" <rhowa...@sgb.co.uk>
Subject RE: [users@httpd] php4 and form variables on apache
Date Mon, 09 Dec 2002 14:10:25 GMT
On a general note, I've found while developing and debugging PHP scripts it
helps to issue a "phpinfo();" as the last thing on the page.

It's been pretty useful, especially in identifying things like typos in form
variable names.

R.

----- Original Message -----
From: "Jonathan Villa" <apacheusermailinglist@ftbwebsolutions.com>
To: <users@httpd.apache.org>
Sent: Monday, December 09, 2002 1:22 AM
Subject: RE: [users@httpd] php4 and form variables on apache

>
> When you look for your submitted form values, try $_REQUEST['your_var']
>
> Or just set register globals = on in your php.ini file, but that's not
> recommended.
>
> Reason it works on your host could be because they register_globals set
> to on.
>
>
> -----Original Message-----
> From: Jim Mohler [mailto:jamoe@email.msn.com]
> Sent: Sunday, December 08, 2002 5:17 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] php4 and form variables on apache
>
> I have been working to configure RedHat 8.0, Apache with virtual
> servers,
> php4 and mysql.  I intend to use this server strictly as an internal
> development server. I have the virtual server, php4, and mysql working
> as
> near as I can tell but... when I submit a form to php scripts using the
> post
> method the variables are not passed.  These scripts work with my hosting
> site on the net.  I have taken the following steps:
>
> 1. Verified the directories have adequate permissions: 755
> 2. Made the files and the directory owners the same - root
> 3. Verified the scripts still work on the live host
> 4. Read and reviewed any documentation I could find on both PHP4 and
> Apache
> regarding Get and Post methods
>
> The php scripts run and produce the page but I have error handling that
> looks for appropriate values in the variables that should be passed.
> For
> debugging purposes I display the variable names, and values and if
> required
> fields are empty and the scripts terminate.
>
> I believe there must be an option in httpd.conf that must be set for
> this to
> work but at this point I must ask for help because I cannot find it.
> Hope
> someone knows what to do to get this working.
>
> Jim Mohler


IMPORTANT INFORMATION & CONFIDENTIALITY NOTICE 

The information in this Email is confidential and may be legally privileged.
It is intended solely for the 
named recipient.  Access to this e-mail by anyone else is unauthorised.  If
you are not the intended recipient 
or the employee or agent responsible for delivering the message to the
recipient named, please note that any 
use, disclosure, copying, distribution of this Email or any action taken or
omitted to be taken in reliance 
on it is prohibited.  If you are not the intended recipient, please inform
us by returning a copy of the 
Email with the subject line marked "wrong address" and then deleting the
Email, and any attachments and any 
copies of it. 

Any questions should be directed to mailto:administrator@harsco.com

Harsco uses regularly updated anti-virus software in an attempt to reduce
the possibility of infection.
However we do not guarantee that any attachments to this email are virus
free.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message