W3C home > Mailing lists > Public > www-validator@w3.org > June 2006

Re: I think this is a bug

From: Carlos Alberto Pérez Muñoz <carlos.a.perez.m@gmail.com>
Date: Thu, 8 Jun 2006 12:05:09 -0400
Message-ID: <c28a1e830606080905i568d889bka91dbe572aab1fd7@mail.gmail.com>
To: "Anthony Ettinger" <aettinger@sdsualumni.org>
Cc: www-validator@w3.org
I'm back.

I use both, GET and POST data, the parameters which gave me the problem, are
GET parameters.

In your response before you said:
don't pass parameters in the action, pass them as hidden fields
and, to my knowlege, any hidden field would be POST field.

The GET fields I use them to pass data between diffrerent processes and the
POST for specific FORM data.

NOW TO MY QUEISTIONS

How come that this is a valid statement
http://validator.w3.org/check?uri=
http://carlosccna.no-ip.org/SpecialFeatures/ContactForm.php
&Debug=Off&End=End
within a javascript, it has one (1) question mark and two (2) ampersand

and not valid

<form name='myForm' action='../SpecialFeatures/ContactForm.php
?Debug=Off&End=End' onSubmit='return CheckData( this.form )' method='post'>
whithin html, it has has one (1) question mark and only one (1) ampersand

I have read, and there are millions of pages out there that use the symbol &
within forms submit, I was taught to do it that way.

As it is mandatory to specify an ACTION within a form field and I don't want
to change much of my coding, I changed the action to
<form name='myForm' action='' onSubmit='return CheckData(this.form)'
method='post'>

Notice action='', this is just to comply with the way you validate but the
form is taking no action, the action is taken by the onSubmit.
I think this is absurd, what is the point of validating (and enforcing) that
there is an action if in reallity there is no action taken?
Just to comply with some kind of STANDARD that you can overtake this way?

Remamber just one thing, I'm new to these standards not to programming web
pages. I have a lot of intranet sites (different customers) with very
complex systems and they are working perfectly. It is now, that I'm trying
to help an student in his major tesis which has to be W3C compliant that I'm
doing this.

Thanks again for your guidance.

On 6/8/06, Anthony Ettinger <aettinger@sdsualumni.org> wrote:
>
> what is your application doing? you should only use get to retrieve data.
>
> if it's a form, and they are entering data, definitely use post.
>
>
> On 6/7/06, Carlos Alberto Pérez Muñoz <carlos.a.perez.m@gmail.com> wrote:
> > That was fast.
> >
> > I have to think about your suggestion because using hidden fields
> changes
> > them from GET to POST so I then will have to reprogram everything to use
> > $_REQUEST in php instead of $_GET and $_POST
> >
> > Any response to this I'll read it later it's 2:22 my time.
> >
> > Thanks again.
> >
> >
> > On 6/8/06, Anthony Ettinger <aettinger@sdsualumni.org> wrote:
> > > don't pass parameters in the action, pass them as hidden fields.
> > >
> > >
> > >
> > > On 6/7/06, Carlos Alberto Pérez Muñoz <carlos.a.perez.m@gmail.com>
> wrote:
> > > > Thanks for the tip but I already knew that, my problem was a
> > > > missunderstanding of the part with the ? in my coding.
> > > >
> > > > I have another question:
> > > > If I use this code:
> > > > <form name='myForm'
> > > >
> > action='../SpecialFeatures/ContactForm.php?Debug=Off&End=End'
> > > > onSubmit='return CheckData( this.form )' method='post'>
> > > > and do the validation I get this response back:
> > > >  Below are the results of attempting to parse this document with an
> SGML
> > > > parser.
> > > >    1. Warning Line 123 column 76: cannot generate system identifier
> for
> > > > general entity "End".
> > > >       ...alFeatures/ContactForm.php?Debug=Off&End=End'
> > > > onSubmit='return CheckData( thi
> > > >       An entity reference was found in the document, but there is no
> > > > reference by that name defined. Often this is caused by misspelling
> the
> > > > reference name, unencoded ampersands, or by leaving off the trailing
> > > > semicolon (;). The most common cause of this error is unencoded
> > ampersands
> > > > in URLs as described by the WDG in "Ampersands in URLs".
> > > >       Entity references start with an ampersand (&) and end with a
> > semicolon
> > > > (;). If you want to use a literal ampersand in your document you
> must
> > encode
> > > > it as "&amp;" (even inside URLs!). Be careful to end entity
> references
> > with
> > > > a semicolon or your entity reference may get interpreted in
> connection
> > with
> > > > the following text. Also keep in mind that named entity references
> are
> > > > case-sensitive; &Aelig; and &aelig; are different characters.
> > > >       If this error appears in some markup generated by PHP's
> session
> > > > handling code, this article has explanations and solutions to your
> > problem.
> > > >       Note that in most documents, errors related to entity
> references
> > will
> > > > trigger up to 5 separate messages from the Validator. Usually these
> will
> > all
> > > > disappear when the original problem is fixed.
> > > >    2. Error Line 123 column 76: general entity "End" not defined and
> no
> > > > default entity.
> > > >       ...alFeatures/ContactForm.php?Debug=Off&End=End'
> > > > onSubmit='return CheckData( thi
> > > >       This is usually a cascading error caused by a an undefined
> entity
> > > > reference or use of an unencoded ampersand (&) in an URL or body
> text.
> > See
> > > > the previous message for further details.
> > > >    3. Error Line 123 column 79: reference to entity "End" for which
> no
> > > > system identifier could be generated.
> > > >       ...eatures/ContactForm.php?Debug=Off&End=End'
> > > > onSubmit='return CheckData( this.f
> > > >       This is usually a cascading error caused by a an undefined
> entity
> > > > reference or use of an unencoded ampersand (&) in an URL or body
> text.
> > See
> > > > the previous message for further details.
> > > >    4. Info Line 123 column 75: entity was defined here.
> > > >       ...ialFeatures/ContactForm.php?Debug=Off&End=End'
> > > > onSubmit='return CheckData( th
> > > >
> > > > WHY IS THAT? If the code I use to send the validation is:
> > > >
> >
> http://validator.w3.org/check?uri=http://carlosccna.no-ip.org/SpecialFeatures/ContactForm.php&Debug=Off&End=End
> > > > .
> > > > with the simbol & IN IT has no errors Why is it an error when I use
> the
> > &
> > > > symbol in my code to send the data in the submit option?
> > > >
> > > > I already fix the page and changes the & to &amp; and it works a
> passes
> > the
> > > > validation.
> > > >
> > > > My question arises because I have been programming for 5 years and
> NOW
> > is
> > > > when I find that the & sign should not be used even though it gives
> no
> > > > errors in the inter program communication.
> > > >
> > > > By the way the page now validates without errors.
> > > >
> > > > Thanks again for your patience with this newbe in W3C standards.
> > > >
> > > >
> > > > On 6/8/06, Anthony Ettinger < aettinger@sdsualumni.org > wrote:
> > > > >
> > > > > http://sislands.com/coin70/week6/encoder.htm
> > > > >
> > > > >
> > > > >
> > > > > On 6/7/06, Carlos Alberto Pérez Muñoz < carlos.a.perez.m@gmail.com
> >
> > wrote:
> > > > > >
> > > > > > I think I got you, I'll try and let you know.
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 6/8/06, Anthony Ettinger < aettinger@sdsualumni.org > wrote:
> > > > > > >
> > > > > > > like i said, you need to url encode the string it's erroring
> out
> > > > because there are two ?'s
> > > > > > >
> > > > > > > validate.w3c.org/?url= foo.com?a=1&b=2
> > > > > > >
> > > > > > > make sense? encode your string "foo.com?a=1&b=2 "
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 6/7/06, Carlos Alberto Pérez Muñoz <
> > carlos.a.perez.m@gmail.com>
> > > > wrote:
> > > > > > > > In the test I have done, with IExplorer (yucks), I get an
> error
> > thet
> > > > the
> > > > > > > > referer was not sent or found so I made the Javascript that
> > handles
> > > > the page
> > > > > > > > sending.
> > > > > > > >
> > > > > > > > When you tell me why bother , as I stated in my initial
> report,
> > What
> > > > will
> > > > > > > > hapen is somebody copies the given text (incomplete) into
> the
> > > > browser, sends
> > > > > > > > the requisition, and then my page (some of them) will NOT
> work?
> > > > > > > >
> > > > > > > >
> > > > > > > >  On 6/8/06, Anthony Ettinger < aettinger@sdsualumni.org>
> wrote:
> > > > > > > > > i'm guess you have to url encode the $ParaProg var in
> > > > javascript...
> > > > > > > > >
> > > > > > > > > why bother with this anyway? add this to your footer if
> you
> > want
> > > > to
> > > > > > > > > show you're w3c compliant html:
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > <a href="
> > > > http://validator.w3.org/check?uri=referer"><img
> > > > > > > > > src=" http://www.w3.org/Icons/valid-xhtml10 "
> > > > alt="Valid
> > > > > > > > XHTML 1.0!"
> > > > > > > > > height="31" width="88"></a>
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > On 6/7/06, Carlos Alberto Pérez Muñoz <
> > > > carlos.a.perez.m@gmail.com> wrote:
> > > > > > > > > > By the way this is my own site which I'm trying to make
> W3C
> > > > compliant.
> > > > > > > > > >
> > > > > > > > > > The uri is sent by clicking on the XHTML image within
> the
> > page.
> > > > > > > > > >
> > > > > > > > > > this is the associated code in php:
> > > > > > > > > >
> > > > > > > > > > echo "    function ValidXHTML( ) {\n";
> > > > > > > > > > echo "         window.open( '
> > > > > > > > > > http://validator.w3.org/check?uri=http:// "
> > .
> > > > $_SERVER[
> > > > > > > > > > 'SERVER_NAME' ] . $_SERVER[ 'SCRIPT_NAME' ] .
> "?$ParaProg',
> > > > 'XHTML',
> > > > > > > > > >
> > > > > > > >
> > > >
> > 'location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1'
> > > > > > > > > > );\n";
> > > > > > > > > >  echo "    }\n";
> > > > > > > > > >
> > > > > > > > > > which then translated into html becomes:
> > > > > > > > > > function ValidXHTML( ) {
> > > > > > > > > >  window.open( '
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> >
> http://validator.w3.org/check?uri=http://carlosccna.no-ip.org/SpecialFeatures/ContactForm.php?Debug=Off&End=End
> > > > > > > > ',
> > > > > > > > > > 'XHTML',
> > > > > > > > > >
> > > > > > > >
> > > >
> > 'location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1'
> > > > > > > > > > );
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > }
> > > > > > > > > >
> > > > > > > > > > Please notice that $ParaProg turns into
> Debug=Off&End=End
> > > > > > > > > >
> > > > > > > > > > I use this kind of parameters a lot in my programming to
> > pass
> > > > data from
> > > > > > > > one
> > > > > > > > > > page to another that is why I wondered what happened to
> the
> > > > &End=End
> > > > > > > > > >
> > > > > > > > > > Waiting for your feedback.
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > On 6/8/06, olivier Thereaux < ot@w3.org> wrote:
> > > > > > > > > > > Hello Carlos,
> > > > > > > > > > >
> > > > > > > > > > > On 8 Jun 2006, at 10:13, Carlos Alberto Pérez Muñoz
> wrote:
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> > http://validator.w3.org/check?uri=http://carlosccna.no-ip.org/
> > > > > > > > > > > >
> > > > SpecialFeatures/ContactForm.php?Debug=Off&End=End
> > > > > > > > > > >
> > > > > > > > > > > Where did you get that URI?
> > > > > > > > > > > If you want to validate
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> > http://carlosccna..no-ip.org/SpecialFeatures/ContactForm.php
> > > > > > > > > > ?
> > > > > > > > > > > Debug=Off&End=End
> > > > > > > > > > > then the validation address is
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> > http://validator.w3.org/check?uri=http%3A%2F%2Fcarlosccna.no-ip.org%
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> > 2FSpecialFeatures%2FContactForm.php%3FDebug%3DOff%26End%3DEnd
> > > > > > > > > > > (which is what you'll get when pasting the address
> into
> > the
> > > > validator
> > > > > > > > > > > form field)
> > > > > > > > > > >
> > > > > > > > > > > If you send this to the validator:
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > >
> > http://validator.w3.org/check?uri=http://carlosccna.no-ip.org/
> > > > > > > > > > >
> > > > SpecialFeatures/ContactForm.php?Debug=Off&End=End
> > > > > > > > > > > it will consider, rightfully so, the &End=End as a
> > parameter
> > > > for the
> > > > > > > > > > > validator.
> > > > > > > > > > >
> > > > > > > > > > > --
> > > > > > > > > > > olivier
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Carlos A. Pérez M.
> > > > > > > > > >
> > > > --------------------------------------------------
> > > > > > > > > > Programación de Páginas Web
> > > > > > > > > > Especializado en Php, Javascript y MySql.
> > > > > > > > > >
> > > > --------------------------------------------------
> > > > > > > > > > Web Sites Programming
> > > > > > > > > > Php, Javascripts & MySql Specialized
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Anthony Ettinger
> > > > > > > > > Signature: http://chovy.dyndns.org/hcard.html
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > >
> > > > > > > > Carlos A. Pérez M.
> > > > > > > >
> > --------------------------------------------------
> > > > > > > > Programación de Páginas Web
> > > > > > > > Especializado en Php, Javascript y MySql.
> > > > > > > >
> > --------------------------------------------------
> > > > > > > > Web Sites Programming
> > > > > > > > Php, Javascripts & MySql Specialized
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > >
> > > > > > > Anthony Ettinger
> > > > > > > Signature: http://chovy.dyndns.org/hcard.html
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > >
> > > > > > Carlos A. Pérez M.
> > > > > > --------------------------------------------------
> > > > > > Programación de Páginas Web
> > > > > > Especializado en Php, Javascript y MySql.
> > > > > > --------------------------------------------------
> > > > > > Web Sites Programming
> > > > > > Php, Javascripts & MySql Specialized
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > Anthony Ettinger
> > > > > Signature: http://chovy.dyndns.org/hcard.html
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Carlos A. Pérez M.
> > > > --------------------------------------------------
> > > > Programación de Páginas Web
> > > > Especializado en Php, Javascript y MySql.
> > > > --------------------------------------------------
> > > > Web Sites Programming
> > > > Php, Javascripts & MySql Specialized
> > >
> > >
> > > --
> > > Anthony Ettinger
> > > Signature: http://chovy.dyndns.org/hcard.html
> > >
> >
> >
> >
> > --
> >
> > Carlos A. Pérez M.
> > --------------------------------------------------
> > Programación de Páginas Web
> > Especializado en Php, Javascript y MySql.
> > --------------------------------------------------
> > Web Sites Programming
> > Php, Javascripts & MySql Specialized
>
>
> --
> Anthony Ettinger
> Signature: http://chovy.dyndns.org/hcard.html
>



-- 
Carlos A. Pérez M.
--------------------------------------------------
Programación de Páginas Web
Especializado en Php, Javascript y MySql.
--------------------------------------------------
Web Sites Programming
Php, Javascripts & MySql Specialized
Received on Thursday, 8 June 2006 16:05:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:22 GMT