SnippetCollection
Forums  
Links
 
Support
 


snippetCollection.com Forum Index FAQ Memberlist Search Usergroups Profile Log in to check your private messages Log in Register
Welcome to SnippetCollection.com, a friendly and fast growing community of programmers, coders, web application developers and more. You are currently viewing our forums as a guest!

This message will go away once you are registered. Also, by registering you will have access to all post topics, communicate privately with other members (PM), respond to polls and access other special features. Registration is fast, simple and absoultely free so please Click Here to join our community

Enjoy our great collection of snippets and tutorials!

Log in
Username:
Password:

 

Our Sponsors
           
Want to list your business here. Contact us.
 Single and Double Quotes Problem View next topic
View previous topic
Post new topic Reply to topic
Author Message
qman



Joined: 16 Sep 2005
Posts: 3

PostPosted: Tue Aug 08, 2006 8:21 pm Reply with quoteBack to top

It has been a while since I have been coding and am stuck on a little issue. How do I include quotes in strings.

I tried escaping the double quation marks and that works fine (IE \") but when I try to do the same for a single quotation. I get the following error below, even when I do not escape the single quotes. Is there an easy solution to this?

Any help appreciated.

I get the following result:

Teacher prompts: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'How did talking about the project with other students help you create a better poster?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'What language skills did you use in creating this media text?\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'

from this code:

Code:
    <tr>
      <td><font size=\"2\" face=\"Arial, Helvetica, sans-serif\">
        <input type=\"checkbox\" name=\"expect[]\" value=\"<b></b> Teacher prompts: \'How did talking about the project with other students help you create a better poster?\' \'What language skills did you use in creating this media text?\'  \">
        Teacher prompts: \'How did talking about the project with other
        students help you create a better poster?\' \'What language skills did
        you use in creating this media text?\' </font></td></tr>
    <tr>
Display posts from previous:      
Post new topic Reply to topic


 Jump to:   



View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT