JavaScript not working sentences
<p>I have a php program which is suppose to alert the links clicked.For example I have a link <code>hello</code> and when I click on that link javascript should alert <code>hello</code>. It works fine without spaces, but when I have a link like <code>hello world</code> it does not alert anything.These words are extracted form a database.</p>

<p>My code is given below </p>

<pre><code>function gmail(val)
{
    alert(val);
}
</code></pre>

<p>For php</p>

<pre><code>&lt;?php
    $name="raj"; //this is just a dummy value
    $include "database_connectivity.php";
    $conn=odbc_connect($dsn,$database_username,$database_password);
    if(!$conn)
    {
        die('Could not connect to database.'.odbc_error());
    }
    $select="SELECT WHERE_TO_CHANGE FROM REQUEST_SEND_TABLE WHERE SENT_FROM ='$name'";
    $exe=odbc_exec($conn, $select);
    if(!$exe)
    {
        die("Could not execute query".odbc_error());
    }
    while($row_user=odbc_fetch_array($exe))
    {
        $show=$row_user['WHERE_TO_CHANGE'];
        echo "&lt;input type='hidden' id='".$show."' value='".$show."'&gt;";
        echo "&lt;a href='#' id='check'  onClick='gmail(".$show.".value)' &gt;".$show."            &lt;/a&gt;";
        echo"&lt;br&gt;";
    }
    odbc_close($conn);
?&gt;
</code></pre>

<p>Can anyone tell me whats wrong here ?</p>
