#24017 [Asn->Csd]: HTML/Form.php; target missing in returnStart()
| From: | nicos@php.net | Date: | Thu, 31 Jul 2003 09:02:14 +0000 |
| Subject: | #24017 [Asn->Csd]: HTML/Form.php; target missing in returnStart() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19010@lists.php.net to get a copy of this message | ||
ID: 24017
Updated by: nicos@php.net
Reported By: magz at bop dot nu
-Status: Assigned
+Status: Closed
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.3.2
Assigned To: ssb
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-06-04 10:11:53] magz at bop dot nu
Sorry, correct is;
function returnStart($multipartformdata = false)
{
$str = "<form action=\"" . basename ($this->action) . "\"
method=\"$this->method\"";
if ($this->name) {
$str .= " name=\"$this->name\"";
}
if ($this->target) {
$str .= " target=\"$this->target\"";
}
if ($multipartformdata) {
$str .= " enctype=\"multipart/form-data\"";
}
$str .= ">";
return $str;
}
------------------------------------------------------------------------
[2003-06-04 10:09:03] magz at bop dot nu
$Id: Form.php,v 1.2 2003/02/14 11:12:08 mj Exp $
The returnStart() function is missing the "target" (its there in
funcion start()).
resturnStart() Should look like:
function returnStart($multipartformdata = false)
{
$str = "<form action=\"" . basename ($this->action) . "\"
method=\"$this->method\"";
if ($this->name) {
$str .= " name=\"$this->name\"";
}
if ($this->target) {
print " target=\"$this->target\"";
}
if ($multipartformdata) {
$str .= " enctype=\"multipart/form-data\"";
}
$str .= ">";
return $str;
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24017&edit=1