1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is this a typo?

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

  1. Mitzs
    Honorary Member

    Mitzs Ducktape Goddess

    3,282
    73
    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

    dmarsh Terabyte Poster

    3,782
    302
    184
    Single and double quotes are often interchangeable in file formats and scripting languages.

    Often they are alternated to allow embedded quotes without escaping too...
     
    Certifications: CITP, BSc, HND, SCJP, SCJD, SCWCD, SCBCD, SCEA, N+, Sec+, Proj+, Server+, Linux+, MCTS, MCPD, MCSA, MCITP, CCDH
  3. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,623
    115
    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

    dmarsh Terabyte Poster

    3,782
    302
    184
    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.
     
    Certifications: CITP, BSc, HND, SCJP, SCJD, SCWCD, SCBCD, SCEA, N+, Sec+, Proj+, Server+, Linux+, MCTS, MCPD, MCSA, MCITP, CCDH

Share This Page

Loading...