/" That should work. I dont think you have to escape the single quotes, but I could be wrong. "Doug Parker" wrote in message news:20030911154350.38894.qmail@pb1.pair.com...[quote] > isn't there a function that allows me to store a string with a bunch of > quotes in it (like an html tag) into a variable? > > for example, i need something like: $perf_mod = onclick="popWindow('popup.php')"> > > thanks... > > -- > > > > ------------------------------------------------------------ > [url]http://www.phreshdesign.com[/url][/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <20030911154809.45641.qmail@pb1.pair.com> [ref] => <20030911154350.38894.qmail@pb1.pair.com> [htmlstate] => on_nl2br [postusername] => Rex Brooks [ip] => brooksrl@email. [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) --> storing quotes into a variable - PHP Development

storing quotes into a variable - PHP Development

I think you just have to escape every double quote that you want to be a part of the HTML code like this --> /" That should work. I dont think you have to escape the single quotes, but I could be wrong. "Doug Parker" <drparkerphreshdesign.com> wrote in message news:20030911154350.38894.qmailpb1.pair.com... > isn't there a function that allows me to store a string with a bunch of > quotes in it (like an html tag) into a variable? > > for example, i need something like: $perf_mod = <a href="#" > onclick="popWindow('popup.php')"> > > thanks... > > -- > > > ...

  1. #1

    Default Re: storing quotes into a variable

    I think you just have to escape every double quote that you want to be a
    part of the HTML code like this --> /"
    That should work. I dont think you have to escape the single quotes, but I
    could be wrong.



    "Doug Parker" <drparkerphreshdesign.com> wrote in message
    news:20030911154350.38894.qmailpb1.pair.com...
    > isn't there a function that allows me to store a string with a bunch of
    > quotes in it (like an html tag) into a variable?
    >
    > for example, i need something like: $perf_mod = <a href="#"
    > onclick="popWindow('popup.php')">
    >
    > thanks...
    >
    > --
    >
    >
    >
    > ------------------------------------------------------------
    > [url]http://www.phreshdesign.com[/url]
    Rex Brooks Guest

  2. #2

    Default Re: storing quotes into a variable

    A horsie named Doug Parker demonstrated surprising intelligence and its
    ability to use morse code on Thu, 11 Sep 2003 10:43:52 -0500 when it
    tapped <20030911154350.38894.qmailpb1.pair.com> with its hoof:
    > isn't there a function that allows me to store a string with a bunch of
    > quotes in it (like an html tag) into a variable?
    >
    > for example, i need something like:
    > $perf_mod = <a href="#" onclick="popWindow('popup.php')">
    Here doents are great for situations where
    you want to use both single and double quotes
    in a string:

    $pref_mod = <<<IMHERE
    <a href="#" onclick="popWindow('popup.php')">
    IMHERE;

    And they even interpolate :)
    >
    > thanks...
    >
    You're welcome.

    Gary Petersen Guest

Similar Threads

  1. storing and changing an external variable
    By fourinchesofego in forum Macromedia Flash Data Integration
    Replies: 3
    Last Post: May 10th, 06:25 PM
  2. Storing value from XML into a variable
    By sun4none in forum Macromedia Flash Data Integration
    Replies: 1
    Last Post: May 22nd, 11:37 PM
  3. Adding Double Quotes to variable
    By Anthony J Segelhorst in forum PERL Beginners
    Replies: 2
    Last Post: October 26th, 02:12 AM
  4. [PHP] storing quotes into a variable
    By Chris Neale in forum PHP Development
    Replies: 1
    Last Post: September 11th, 09:34 PM
  5. Variable & storing
    By yop in forum ASP.NET General
    Replies: 3
    Last Post: July 25th, 03:19 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139