473,769 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP code not sending POST form variables

Hi everyone,

I've downloaded the PHP code at http://www.inventory-management.org/
and am currently in the process of trying to get the code up and
running. I am running PHP version 5.1.6.6, so I needed to change the
function named fputcsv to f_put_csv.

However, when trying to login to the page (after setting up the
database), I find that the $_POST array is empty?! I found this by
putting the line var_dump($_POST ) at the top of the index.php file.
When I change the method of the form to "get", the variables are sent
appropriately.

I read that the problem might be due to the server configuration, but
a simple script that echoes the contents of $_POST from a simple form
shows that variables can be posted:

(the test code is:

<?php

var_dump($_POST );
?>
<form method="post">
<input type="text" name="first" />
<input type="submit" />
</form>
)

What could possibly going wrong in the inventory management software?
The only thing I can think of is that a feature has been changed/
deprecated over time, leading to the management software not working.

Thanks

Taras

Oct 25 '07 #1
1 2193
the test code you include doesn't have an action attribute, which is
required, the code that isn't working does have an action set on the
form? and it does feature the scriptname in which you've included the
var_dump code doesn't it?

On 25 Oct 2007 08:19:09 -0700, Taras_96 <ta******@gmail .comwrote:
>Hi everyone,

I've downloaded the PHP code at http://www.inventory-management.org/
and am currently in the process of trying to get the code up and
running. I am running PHP version 5.1.6.6, so I needed to change the
function named fputcsv to f_put_csv.

However, when trying to login to the page (after setting up the
database), I find that the $_POST array is empty?! I found this by
putting the line var_dump($_POST ) at the top of the index.php file.
When I change the method of the form to "get", the variables are sent
appropriatel y.

I read that the problem might be due to the server configuration, but
a simple script that echoes the contents of $_POST from a simple form
shows that variables can be posted:

(the test code is:

<?php

var_dump($_POS T);
?>
<form method="post">
<input type="text" name="first" />
<input type="submit" />
</form>
)

What could possibly going wrong in the inventory management software?
The only thing I can think of is that a feature has been changed/
deprecated over time, leading to the management software not working.

Thanks

Taras
Oct 29 '07 #2

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

Similar topics

4
3659
by: jerrygarciuh | last post by:
Hostway swears they didn't do anything but mysterious breakdowns have made us do the following test: <? if ($_POST) { echo "<h3>name is defined as $name</h3>"; print_r($_POST); exit; } ?>
2
450
by: CCP | last post by:
I've got a simple HTML page containing a form and a few hidden variables. This form post into a .Net application (that lives in a seperate directory). The first thing I do in my codebehind is grab the values of the form fields, however .net is unable to see these values. The entire Request.Form object is empty. Request.Form.Count == 0. If I turn on the tracing/debug output the form itself isn't even listed.
0
1257
by: John Wood | last post by:
I have an ASP script in which I want to control the screen as two frames If I use a FRAMESET this works fine but the frame geometry is fixed the script uses POST and hidden fields to transfer the data from step to step, what I would like is to be able to change the sizes of the frames or even go from two frames to one and back to two as I go through the dialogue. So I thought to use IFRAMES instead of a frameset, but now I have two ASP...
4
2973
by: Philippe | last post by:
hi everybody, I let the user enter values in a Child Form. How can I post those values back to the MDIParent Form (which uses these values) ? By the way, is it possible to access Public MDIParent variables in a Child Form ?? Help appreciated,
3
1281
by: Marcel Balcarek | last post by:
Can I keep the value of (some of) my server variables across posts? I can define hidden form fields, but is there a better way? I have passed some form variables from one page to another and now wish to remember them across posts. Thank you Marcel
2
1434
by: Wee Bubba | last post by:
my page is split into 2 frames. my upper frame contains a data entry form consisting of asp.net textbox server controls. my lower frame displays rows of data. when a user clicks the submit button in the upper frame I want the textfield contents to be validated then I want to send the form variables to the page in my lower frame forcing it to refresh. my lower frame will then get these variables, use them to insert a new row then will...
3
1710
by: jethro_uk | last post by:
Hi there, I have a bizarre problem with FORM variables in ASP. Scenario using VI6, IE6, Windows2000 server: MyPage.ASP: .. .. ..
3
1227
by: Jon | last post by:
Hello all, In my app, I'm opening up another window and doing a redirect to another app. Within this app, I need to do a Request.Form in order to retrieve a variable from app1. Can this be done? If so, could anyone help? Thank You?
2
7123
by: sweetiecakes | last post by:
After a brief Google session, I can only find the following: 1. Instructions for pre-.NET VB 2. Other IE controls I need to send a POST form with the web browser control: I need to do it with it, because I need "silent authentication" to the website with IE. How would I do this?
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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
10049
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
9997
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
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
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();...
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
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.