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

    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

    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

    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.

    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  4. dmarsh

    dmarsh Terabyte Poster

    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