title: sending a string from php to javascript function
body: <p>Im tring to pass a string which im getting from my database to a javascript function.</p>
  
  <p>In my php I have:</p>
  
  <pre><code>&lt;input type="image" name="edit_me" id="edit_me"  value="&lt;?php echo $row['id']; ?&gt;" onClick="edit_chirp(&lt;?php echo $row['id']; ?&gt;)"/&gt; //THIS WORKS
  </code></pre>
  
  <p>When I pass the id im getting it works fine but when I pass a field where it has text it doesnt work.</p>
  
  <pre><code>&lt;input style="float:right" type="image" name="edit_me" id="edit_me"  value="&lt;?php echo $row['id']; ?&gt;" onClick="edit_chirp(&lt;?php echo $row['content']; ?&gt;)" //THIS DOESNT WORK
  </code></pre>
  
  <p>My javascript function is</p>
  
  <pre><code>function edit_chirp(somethig)
      {
          alert(somethig);
      }
  </code></pre>