473,813 Members | 4,122 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why is the $_POST variable empty?

Hi everyone,

I'm trying to get the code found at http://www.inventory-management.org/
up and running. So far I've created the database, edited the
configuration files to include the database information, renamed the
fputcsv function to f_put_csv. I'm trying to log into the page by
using the suggested user/pass of admin/test. However, I can see by
placing var_dump($_POST ) at the top of index.php, that when I submit
the form no data is in the $_POST array?!

When the action is changed to GET, the appropriate variables appear in
the GET array?!

I thought it may have something to do with the configuration of the
web server, but creating a running a test PHP script that posts a
variable to itself shows that variables, from this script, are being
posted.

Does anyone have any ideas of what may be going wrong?

Thanks

Taras

Oct 25 '07 #1
2 2299
"Taras_96" <ta******@gmail .comwrote in message
news:11******** **************@ t8g2000prg.goog legroups.com...
Hi everyone,

I'm trying to get the code found at http://www.inventory-management.org/
up and running. So far I've created the database, edited the
configuration files to include the database information, renamed the
fputcsv function to f_put_csv. I'm trying to log into the page by
using the suggested user/pass of admin/test. However, I can see by
placing var_dump($_POST ) at the top of index.php, that when I submit
the form no data is in the $_POST array?!

When the action is changed to GET, the appropriate variables appear in
the GET array?!
I hope you meant to say METHOD rather than ACTION.

If you changed the ACTION string, your problem is clear.
I thought it may have something to do with the configuration of the
web server, but creating a running a test PHP script that posts a
variable to itself shows that variables, from this script, are being
posted.

Does anyone have any ideas of what may be going wrong?
--
David T. Ashley (dt*@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
Oct 25 '07 #2
>
I hope you meant to say METHOD rather than ACTION.

If you changed the ACTION string, your problem is clear.
Yes, sorry, I meant METHOD :*)

Oct 25 '07 #3

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

Similar topics

10
2671
by: Jack | last post by:
How would I add a variable that I will assign to a list of $_POST variables that I extract from a form? My form passes a value for $q. That works fine. What I want to do is run an if/else on it and assign a new variable based on what was chosen such as if ($q == "red") { $q = "tp"; //change $q to this value $sub = "ak"; //attach this value to the $sub variable } else {
7
11882
by: Dan | last post by:
I was trying to troubleshoot a login page that doesn't work - it keeps saying the login/password is missing - when my tracing discovered this peculiar behavior. register_globals is off, so at the top of my script I assign a few variables to incoming GET and POST values. $login = clean($_POST, 30); $passwd = clean($_POST, 30);
5
3617
by: lorenzdominic_ | last post by:
Hi Recently I have been developing a form that uses the _POST variable. Today the _POST variable was empty everytime I submitted my form however I changed the post method to be GET and the receiving _GET variable contains the form variables. So does the _REQUEST but for some reason the _POST variable has ceased to hold the variables. Any reason why this would be?
2
3148
by: keeps21 | last post by:
I have a script that recieves an id number via the address bar when a link is clicked. ie . index.php?id=1 if the link was for the story whose ID is 1. My script checks if a user is logged in, if not they are redirected to the login page. If logged in they may edit the story. I assign $_GET to $id.
4
45636
by: mtuller | last post by:
I have a page that submits data to a database, and I want to make it so that if the page is refreshed, it doesn't submit the information again. I am trying to use unset the variables so that if the page is refreshed, it will not submit again. I saw a post about setting a time delay of something like 30 seconds, but would prefer just to unset the variable. I can't seem to get it working. Here is a snippet of what I have: echo 'First...
0
9607
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
10665
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...
1
10420
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
10139
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9221
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
5568
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
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3881
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3029
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.