Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - open and closing quotes?!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

open and closing quotes?!

 Post Reply Post Reply
Author
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Topic: open and closing quotes?!
    Posted: 27 June 2003 at 1:19pm
Can anyone tell me what is the differences between open and closing quotes or the standard double quote?  Thank you in advance!! 
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 1:31pm
Well, double shows up as a single in a response.write, a single would close
Back to Top
Lucent View Drop Down
Groupie
Groupie


Joined: 06 June 2003
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote Lucent Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 1:40pm
can you give me an example line of each? thank you!
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 1:52pm

well:

response.write("The man said; "hello how are you" and I ate pie")

would return an error

response.write("The man said; ""hello how are you"" and I ate pie")

would return:

The main said; "hello how are you" and I ate pie

Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 1:54pm

well in ASP if you do

<% response.write("hello world")%>

you cant use quotes in it or it will end the "response.write"

so you will have to use

<% response.write("hello ""world""")%>

the double quotes will cancel it out, so it will show

this would end up writing...

hello "world"

i think the person above was talking about the the ' thing

you could use that would look like

<% response.write("hello 'world'")%>

hope this helps

Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 4:11pm

you should be able to use an apostrophe without it returning an error.

Back to Top
ljamal View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 16 April 2003
Status: Offline
Points: 888
Post Options Post Options   Thanks (0) Thanks(0)   Quote ljamal Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 6:29pm
Originally posted by pmormr pmormr wrote:

you should be able to use an apostrophe without it returning an error.



Unless you are passing the string to a SQL statement and then you will have to replace all instances of the single quote (') with to single quotes ('').

NOTE those are apostrophes (') and not quotes ("). I think a lot of the confusion is in the use of single and double quote. To most, this (") could be a single quote, and this a double quote (""), but we use the apostrophe as a single quote (') and the normal quote (") as double quote.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.