is this a typo?

Discussion in 'Web Development & Web Hosting' started by Mitzs, Feb 23, 2008.

  1. Mitzs
    Honorary Member

    Mitzs Ducktape Goddess

    3,286
    85
    152
    The double quoation marks at the end? I've not seen them double before like this.
     
    Certifications: Microcomputers and network specialist.
    WIP: Adobe DW, PS
  2. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    Single and double quotes are often interchangeable in file formats and scripting languages.

    Often they are alternated to allow embedded quotes without escaping too...
     
  3. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,624
    117
    224
    From memory - and if I have got it wrong I'm sure someone will shout - these days parameter values are supposed to be quoted at all times.

    The action attribute is mandatory, and you appear not to want to specify one, so the two sets of quotes together are enclosing an empty string.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  4. dmarsh
    Honorary Member 500 Likes Award

    dmarsh Petabyte Poster

    4,305
    503
    259
    Harry's right you should always quote now but you can choose either single or double as i indicated.

    The action is not mornally left blank its the default form submit location/URI, normally representing an executable unit of code on a web server. If you use DHTML handlers to submit the form the initial default action becomes less important but is still generally used to specify the forms submit target and makes the code understandable. Normally the same unit of code (controller) is always used on the server so the URI never changes for a given form, so even with DHTML it makes sense to set it to the correct value in the form tag.
     

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.