473,382 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

strange POST vs GET behaviour

LS

I have set up my first Linux box. But I experience some strange POST
behaviour. Maybe this is a know bug or maybe I have done something
wrong with my setup. But I just can't seem to find any solution about
it on google.

I have the following two scripts:

1.php:

<form name="input" action="2.php" method="post">
to pass: <input type="text" name="pass">
<input type="submit" value="Submit">
</form>

2.php:

<?php

echo "passed: ".$_POST['pass'];

echo "<pre>";
print_r($_REQUEST);
echo "</pre>";

?>

This results in:

Notice: Undefined index: pass in /var/www/2.php on line 3
passed:

Array
(
)

The above script doesn't pass the POST. But when I change it to GET it
does get passed to 2.php. Does anyone have an idea?

I am using:

Debian 3.1r4
Apache v1.3.33
PHP v4.3.10-18

Kind regards,
Flits.
Dec 27 '06 #1
2 1253
fl***@flats.nl wrote:
This results in:

Notice: Undefined index: pass in /var/www/2.php on line 3
passed:

Array
(
)

The above script doesn't pass the POST. But when I change it to GET it
does get passed to 2.php. Does anyone have an idea?
Check the output of phpinfo() to see if it gets anywhere. Also, check the
output of both $HTTP_POST_VARS and $_REQUEST['HTTP_POST_VARS'].

Perhaps you upgraded from a pre-4.2 version and some old bits and pieces
where left. You can also try to rename the php.ini file to php.ini.old and
restart your webserver. After this, PHP should resort to its defaults as it
will not be able to locate the php.ini file.
JW
Dec 28 '06 #2

fl***@flats.nl wrote:
The above script doesn't pass the POST. But when I change it to GET it
does get passed to 2.php. Does anyone have an idea?

I am using:

Debian 3.1r4
Apache v1.3.33
PHP v4.3.10-18
Check php.ini for anything to do with POST.

Dec 28 '06 #3

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

Similar topics

0
by: Ethel Aardvark | last post by:
I am running a 9.0.1 database on a W2K server and have come across some strange behaviour with a SQL query. I have a query which runs in a PL/SQL cursor which has several PL/SQL variables used to...
3
by: Bruno van Dooren | last post by:
Hi All, i have some (3) different weird pointer problems that have me stumped. i suspect that the compiler behavior is correct because gcc shows the same results. ...
4
by: ignw82 | last post by:
Hi all, I have a strange behaviour in dataview, maybe you can help me. the behaviour is like this : First I made a datatable (odt) in data set, and then I created a dataview using this...
0
by: theintrepidfox | last post by:
Dear Group I came accross a very annoying behaviour of Visual Studio, giving me six hours of headache till I found the solution. This post is mainly for fellow developers for reference as it...
31
by: gamehack | last post by:
Hi all, I've been testing out a small function and surprisingly it does not work okay. Here's the full code listing: #include "stdlib.h" #include "stdio.h" char* escaped_byte_cstr_ref(char...
0
by: riteshjain1982 | last post by:
Pagepostback.....strange problem Hi, I am at cient place and getting very strange problem with my asp.net application............when i call my web application from any desktop machine in lan...
45
by: simnav | last post by:
In the following code something strange happens ! If I keep pressed any of ALT+Arrow, keys, they are extracted two times from buffer then getch seems to stop; if I release and press again ALT+arrow...
4
prometheuzz
by: prometheuzz | last post by:
Hello all, There's this problem I have, which I am unable to find a solution for. The problem is this: I cannot post messages with a specific size on (certain) forums. I hear you thinking: what...
8
by: Dox33 | last post by:
I ran into a very strange behaviour of raw_input(). I hope somebody can tell me how to fix this. (Or is this a problem in the python source?) I will explain the problem by using 3 examples....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.