You are here: Yet another $_POST Problem « PHP Programming Language « IT news, forums, messages
Yet another $_POST Problem

Posted by Collie on 12/06/05 02:27

PHP version 5.1.1
Apache 2.0.55.

code;
index.html

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<form action="foo.php" method="post" name="form">
<input name='username' type="text" value="colin">
<input name="email" type="text" value="crona...@email.com">
<input name="submit" type="submit" value="submit me!">
</form>
</body>
</html>

foo.php

<?php
echo "We are on foo.php";
echo "<br>";
$username = isset($_POST['username']) ? $_POST['username'] :
NULL;
$email = isset($_POST['email']) ? $_POST['email'] : NULL;
echo $username;
echo $email;
?>

Output;
We are on foo.php

So simple. So easy. Yet $username and $email will not get printed.

All my forms worked perfectly last week (boo-hoo, I know), but now only
GET will work on even the simplest of forms. And I would rather not go
through every form and change them to get.

Cause it's past midnight on my second day of trying to fix this I have
to ask.......
Any ideas?
Did I change a php.ini setting in my sleep?

/* It can take hours to find the problem and a second to fix it. */

 

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

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