View Single Post
  #1  
Old 08-12-2006, 10:08 AM
love love is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
love is on a distinguished road
Default POST question...

Hi

When I run the following code with "Hello" as input:

PHP Code:
<html>
<head>
<title></title>
</head>
<body>
<?
echo $_POST[test];
echo "<br>";
?>
<form method="POST" action="./test.php">
<input type="text" name="test">
<input type="submit" value="Get It!">
</form>
</body>
</html>

It echos back "Hellotest=Hello". In other words, the POST array looks like this: Array ( [test] => Hellotest=Hello ). Shouldn't it be just "Hello"?

Bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - POST question...
View Single Post
  #1  
Old 08-12-2006, 10:08 AM
love love is offline
Junior Member
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
love is on a distinguished road
Default POST question...

Hi

When I run the following code with "Hello" as input:

PHP Code:
<html>
<head>
<title></title>
</head>
<body>
<?
echo $_POST[test];
echo "<br>";
?>
<form method="POST" action="./test.php">
<input type="text" name="test">
<input type="submit" value="Get It!">
</form>
</body>
</html>

It echos back "Hellotest=Hello". In other words, the POST array looks like this: Array ( [test] => Hellotest=Hello ). Shouldn't it be just "Hello"?

Bye -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote