php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22156 "invalid" html output
Submitted: 2003-02-10 17:34 UTC Modified: 2003-02-10 18:01 UTC
From: steven dot harrington at verizon dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: steven dot harrington at verizon dot net
New email:
PHP Version: OS:

 

 [2003-02-10 17:34 UTC] steven dot harrington at verizon dot net
This code produces html that doesn't pass the w3c code validator:

    <form method=post action="Start.php?login">
    <p>
    Name:<br />
    <input type="text" size=8 maxlength=8 name="name" value="$user"> <br />
    Password:<br />
    <input type="password" size=8 maxlength=8 name="password" value="$pw><br />
    <br />
    <input type='submit' value='Log In'> <br />
    </p>
    </form>

The output code is:
    <form method="post" action="Start.php?login"><input type="hidden" name="PHPSESSID" value="c7d63b0826c43760e36c24ee481970a1">
    <p>
    Name:<br>
    <input type="text" size="8" maxlength="8" name="name" value="xxxxxx"> <br>
    Password:<br>
    <input type="password" size="8" maxlength="8" name="password" value="yyyyyyy"><br>
    <br>
    <input type="submit" value="Log In"> <br>
    </p>
    </form>
(name and password values bogus).

Obviously the problem is the hidden input emitted by php to handle the sessions variables which html4 required to be after the <p> tag.

This "bug" has no effect that I can detect.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-10 18:01 UTC] sniper@php.net
You obviously did not search the bug database first.
This is _NOT_ bug. RTFM.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC