Hi again, I just read your post, I removed manually that fieldset
thing( I removed whole but what I dislike there was
that inline css.. by the rule I keep my css and javascript in external
files)

I created simple form(below) and I checked in w3validator.. I got
"This Page Is Valid XHTML 1.0 Transitional!" that makes me happy
enough to keep it like that.. could you give me a source of "it's
invalid to have any input elements within a form element that aren't
also enclosed by a block-level element "?

btw.. I agree that this inline css makes life much easier in
development stage: scaffolding etc.. but for final product in my
opinion view(html) is as much important as its server side.. so adding
option in form helper create() to remove extra markup would be a good
idea.

Bart

........
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>

<body>
<div class="login">
<h2>Login</h2>

    <form id="UserLoginForm" method="post" action="/otherwise/6609/
users/login"><input type="hidden" name="_method" value="POST" />
    <div class="input"><input name="data[User][username]" type="text"
maxlength="20" value="" id="UserUsername" /></div>
    <div class="input"><input type="password" name="data[User]
[password]" value="" id="UserPassword" /></div>
    <div class="submit"><input type="submit" value="Login" /></div>
    </form>

</div>
</body>
</html>
......

On Apr 8, 1:58 am, Stephen Orr <[EMAIL PROTECTED]> wrote:
> The CSS is there because of a ticket I posted - in XHTML it's invalid
> to have any input elements within a form element that aren't also
> enclosed by a block-level element (so, a fieldset, a paragraph, a
> div). The inline CSS is purely there to allow you to have valid XHTML
> and not break your layout with an additional fieldset into the
> bargain.
>
> Steve
>
> On Apr 7, 9:30 am, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
>
> > Why is it bothering you? You can't see it, the user can't see
> > it..which means - by all means - that it isn't really there ;-)
>
> > On Apr 5, 10:10 am, "dzojntywole!" <[EMAIL PROTECTED]> wrote:
>
> > > Hi everybody,
> > > I am trying to use form helper to create a form in my view:
> > > <?php echo $form->create() ?>
>
> > > the result is:
> > > <form id="UserAddForm" method="post" action="/otherwise/6609/users/
> > > add"><fieldset style="display:none;"><input type="hidden"
> > > name="_method" value="POST" /></fieldset>
>
> > > is there a way to remove that inline style other than editing helper
> > > files? i do not want to reinvent the wheel if the option like that
> > > already exist...
>
> > > i tried to google it, asked on #cakephp looked on manual.. api.. still
> > > confused
>
> > > hope to get hint, thanks
>
> > > B.W

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to