473,657 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forms and PHP V5.0.2 with APACHE V2.0.50

Some details of my HOME PC. I am running the following ....
Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK.
In the past couple of weeks I have installed/configured from binaries for ..

MySQL V4.1.5 [mysql-4.1.5-gamma-essential-win.msi]
Apache V2.0.50 [apache_2.0.50-win32-x86-no_ssl.msi]
PHP V5.0.2 [php-5.0.2-win32.zip]
PHPMYADMIN V2.6.0 [phpmyadmin-2.6.0-pl2.zip]

OBJECTIVE: To use my HOME PC to run a local APACHE web server on which to
develop websites that make use of PHP scripts and MySQL databases. My PC
will NOT be used as a service machine.

PROBLEM: I cannot get data from my FORMS to appear in my browser window.
i.e. I just get an HTML Heading from the PHP script and no Data or
associated Text from the Form via the ECHO command.

COMMENTS: The standard phpinfo.php test works fine. PHP date functions work
OK. I can also use the ECHO command to print the content of concatenated
variables containing strings OK.

I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VARS and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBAL S and
REGISTER_LONG_A RRAYS directive settings of the PHP.INI config file, all to
no avail. Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?

I think that I may have a configuration problem with either or both PHP and
APACHE. Maybe they are not working correctly together?

Can anyone offer any help? FAQ's I've seen essentially cover the points
listed above.
Jul 17 '05 #1
3 2182
try

print_r($_POST) ;
print_r($_GET);

Jul 17 '05 #2
Jim Johnstone wrote:
I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VARS and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBAL S and
REGISTER_LONG_A RRAYS directive settings of the PHP.INI config file, all to
no avail. Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?
I'm not sure, but ...

I guess if php is installed as a Apache module it gets loaded when
Apache starts.
Can anyone offer any help? FAQ's I've seen essentially cover the points
listed above.


Increase the reporting level to E_ALL either in php.ini or with

<?php error_reporting (E_ALL); ?>

in your test script(s).
--
USENET would be a better place if everybody read: | to mail me: simply |
http://www.catb.org/~esr/faqs/smart-questions.html | "reply" to this post, |
http://www.netmeister.org/news/learn2quote2.html | *NO* MIME, plain text |
http://www.expita.com/nomime.html | and *NO* attachments. |
Jul 17 '05 #3
On Wed, 27 Oct 2004 15:13:19 +0100, "Jim Johnstone"
<ji***@jimjohns tone.plus.com> wrote:
Some details of my HOME PC. I am running the following ....
Win2000 SP4; IE V6; 512MB RAM; H/Disk Space OK.
In the past couple of weeks I have installed/configured from binaries for ..

MySQL V4.1.5 [mysql-4.1.5-gamma-essential-win.msi]
Not relevant to the current issue, but MySQL 4.1 went General Availability
today on 4.1.7 so it might be worth installing that.
Apache V2.0.50 [apache_2.0.50-win32-x86-no_ssl.msi]
PHP V5.0.2 [php-5.0.2-win32.zip]
PHPMYADMIN V2.6.0 [phpmyadmin-2.6.0-pl2.zip]

OBJECTIVE: To use my HOME PC to run a local APACHE web server on which to
develop websites that make use of PHP scripts and MySQL databases. My PC
will NOT be used as a service machine.

PROBLEM: I cannot get data from my FORMS to appear in my browser window.
i.e. I just get an HTML Heading from the PHP script and no Data or
associated Text from the Form via the ECHO command.

COMMENTS: The standard phpinfo.php test works fine. PHP date functions work
OK. I can also use the ECHO command to print the content of concatenated
variables containing strings OK.

I think the main problem is with actual DATA from a Form via Globals or
Superglobals not working.
I've tried different means of obtaining the Form data, both the old
$HTTP_POST_VAR S and also the newer and preferred $_POST[...]. Associated
with this I have also tried changing the REGISTER_GLOBAL S and
REGISTER_LONG_ ARRAYS directive settings of the PHP.INI config file, all to
no avail.
You've posted a lot of information about configuration - this is good -
however you've missed the most important parts - actual example code, and
examples of how the output differs from what you expect.

$_GET and $_POST are the two main ways to get data from forms. Are you mixing
up GET and POST perhaps?
Note also that I have been restarting APACHE after each change to
PHP.INI to make sure any change is implemented.

I'm not clear on this latter point as I would have thought that Restarting
APACHE was only necessary after alterations to its own config file,
HTTPD.CONF?


PHP only reads its configuration on startup. When loaded as an Apache module,
this means you have to completely stop and then restart Apache to get the PHP
module to be reloaded and so re-read its configuration.

--
Andy Hassall / <an**@andyh.co. uk> / <http://www.andyh.co.uk >
<http://www.andyhsoftwa re.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
2503
by: Andrew Clark | last post by:
i have a simple test form and a php script that handles it. the form is not passing the data to the script, so i end up with an empty html file on submit. the form's setup is like this - <FORM ACTION="HandleForm.php" METHOD=POST> <TABLE> <TR> <TD>First Name:</TD>
8
2004
by: Randell D. | last post by:
Folks, Sorry for the cross post into multiple newsgroups on this, but html forms processing is supported across all three groups so I was hoping someone might know. I did a check with Google and found dated 1996 and 1997... This is a bit too old for me to rely on... Thus... Does anyone know if there is a limit when POSTing? I think a
5
27980
by: Grant Collins | last post by:
Hi I am writing a web based application as part of a small project that I am undertaking using servlets beans and jsp. I already have one servlet - bean - jsp page working and I have written another servlet - bean - jsp but I am hitting an error from tomcat that I have no idea why it is failing. I am getting an org.apache.jasper.JasperException: with the root cause being java.lang.ClassNotFoundException:
1
6912
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
2
2150
by: Pawan | last post by:
Hi Guys, I have this current assignment where I have to develop online forms for local municipal authorities. I have to use adobe acrobat to create online forms from PDFs (which I have never done before and have no idea how to do it). Now these online forms will be shared by 1200 users. VB and ASP will be used as glueware for the writing/coding. For eg, we will be creating navigation pages in ASP & linking into adobe. Any resource on this...
19
5237
by: Alex Madon | last post by:
Hello, I am testing a web application (using the DBX PHP function to call a Postgresql backend). I have 375Mb RAM on my test home box. I ran ab (apache benchmark) to test the behaviour of the application under heavy load. When increasing the number of requests, all my memory is filled, and the Linux server begins to cache and remains frozen. ab -n 100 -c 10 http://localsite/testscript
1
1046
by: Arun Gandhi | last post by:
Hi I am calling a web service from my win form application. Is there a way to see or log the xml/soap reuqests going out? Thanks Arun
3
17111
by: amanjsingh | last post by:
Hi, I am trying to implement Java Web Service using Apache Axis2 and Eclipse as a tool. I have created the basic code and deployed the service using various eclipse plugin but when I try to invoke the service using client stub, I get this error... Exception in thread "main" java.lang.Error: Unresolved compilation problems: org.apache cannot be resolved to a type org.apache cannot be resolved to a type org.apache cannot be resolved to a...
0
3410
rsrinivasan
by: rsrinivasan | last post by:
Hi All, When i run my JSP program, ihave the following exception. How i solve this problem? HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2743
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1970
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.