#24017 [Opn->Asn]: HTML/Form.php; target missing in returnStart()
| From: | lsmith@php.net | Date: | Wed, 09 Jul 2003 11:09:14 +0000 |
| Subject: | #24017 [Opn->Asn]: HTML/Form.php; target missing in returnStart() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18095@lists.php.net to get a copy of this message | ||
ID: 24017
Updated by: lsmith@php.net
Reported By: magz at bop dot nu
-Status: Open
+Status: Assigned
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.3.2
-Assigned To:
+Assigned To: ssb
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