Hi, i am new about PHP, I got a problem about using POST method in HTML and get it in PHP ...
I use a simple form in HTML and put a very long string of a variable, i.e. data ...
<form method="post" action="form.php" id="form1" name="form1">
<input type="hidden" id="data" name="data" value="VERY LONG STRING">
<input type="submit" value="Click Me!" />
</form>
and I use a simple PHP to get the value back ...
<?php
if ($HTTP_POST_VARS["datasss"]) {
echo "<p>Hello, ".$HTTP_POST_VARS["data"]."!";
echo "\n";
}
?>
It seems simple, but the strange thing is that the data obtain in PHP is a little bit different (seems longer) from the HTML one ...
btw, i am using PHP 4.2.2, Linux RH8, Apache 2.0.40 ... while i got no problem when using Windows OS ... Does any PHP expert know why does it happen and how to solve it ?
really thx a billion ~~~