php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17100 cutted form value of last field
Submitted: 2002-05-08 12:37 UTC Modified: 2002-06-02 19:23 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: roberto dot reff at webcate dot de Assigned:
Status: Closed Package: IIS related
PHP Version: 4.2.0 OS: Win2000 A Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: roberto dot reff at webcate dot de
New email:
PHP Version: OS:

 

 [2002-05-08 12:37 UTC] roberto dot reff at webcate dot de
<html>
<head>
	<title>Hash Funktion Test</title>
</head>

<?

echo $pass;

echo $pass2;

?>

<body>
<form method="post" action="submit.php" name="sdfsdf" id="sdfsdf">
  <input type="text" name="pass" size="40">
  <input type="text" name="pass2" size="40">
  <input type="button" name="send" value="send" onClick="self.document.sdfsdf.submit();">
  <input type="submit" name="sendnow" value="sendnow">
</form>
</body>
</html>

by using this codepage i get a nice bug:
the last letter of the value from the last formfield (in this ex. pass2) gets cutted if i send the form by using the JS button (only then) if im usind a standart submit button no problem.

i also tested with a freeBSD Server with the same PHP Version 4.2.0, but there i don't have this problem

greatings RoRo

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-02 19:23 UTC] k.schroeder@php.net
I can't reproduce this bug on my system (W2k Server, IIS5, IE6, PHP 4.2.1). var_dump($_POST) returns the same for both buttons:

array(2) {
  ["pass"]=>
  string(5) "abcde"
  ["pass2"]=>
  string(6) "fghij"
}

This is exactly that, what I've typed in.

Regards, Kai
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 12:01:33 2025 UTC