Re: Re: Weird variable issue encountered... help needed!
| From: | Blake Schroeder | Date: | Mon, 05 Apr 2004 19:02:02 +0000 |
| Subject: | Re: Re: Weird variable issue encountered... help needed! | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182393@lists.php.net to get a copy of this message | ||
Is this what your are trying to do?
<?php
$var = $_POST['var'];
if($var)
var_dump($_REQUEST);
else
{
?>
<form action="index.php" method="post">
<input type="text" name="var">
<input type="submit">
</form>
<?
}
?>
DvDmanDT wrote:
Hmm.. Are there any PHP settings that only applies to that vhost? Can you please try to run PHP as CGI few tries.. If the input is corrupt, that _could_ be caused by the Apache2 which accutually is marked as experimental... Basicly, this would get currupt? (wierd-var-test.php) <? if($action=='post') var_dump($_REQUEST); else { ?> <form action="wierd-var-test.php?action=post"> <input type="text" name="var"> <input type="submit"> </form> <? } ?> Or are there some other details I've missed?-- +-----------------+-----------------+----------------+ | Blake Schroeder | Owner/Developer | lhwd.net | +--(http://www.lhwd.net)------------+--/3174026352\--+