#24017 [Opn]: HTML/Form.php; target missing in returnStart()
| From: | magz at bop dot nu | Date: | Wed, 04 Jun 2003 15:11:54 +0000 |
| Subject: | #24017 [Opn]: HTML/Form.php; target missing in returnStart() | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17012@lists.php.net to get a copy of this message | ||
ID: 24017
User updated by: magz at bop dot nu
Reported By: magz at bop dot nu
Status: Open
Bug Type: PEAR related
Operating System: Linux
PHP Version: 4.3.2
New Comment:
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;
}
Previous Comments:
------------------------------------------------------------------------
[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