You are here: strange POST vs GET behaviour « PHP Programming Language « IT news, forums, messages
strange POST vs GET behaviour

Posted by flits on 12/27/06 19:46

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация