What is the Problem with this kind of Data for Javascript and PHP
<p>I have a Html table which consists of the Data Generated through serverside php .It consists of many rows.Each Row Contains One Button Called "Approve" . when clicked on "Approve" it goes to one php file and does its DB transcations</p>

<p>Here is what i have  Code for "Approve button " in php</p>

<pre><code>$cntrl = "&lt;input name=btn1  type=button  id=btn1  value=Approve  onClick=\"callApprove('".$row['val1']."','".$row['val2']."');\"";
</code></pre>

<p>Here is the  JS Function called when clicked on "Approve".</p>

<pre><code>function  callApprove(val1,val2){
 var url = 'approve.php?id=&lt;?php echo $_REQUEST['var3'];?&gt;&amp;param1='+val1+'&amp;param2='+val2;
window.open(url)
}
</code></pre>

<p>Now Here my Problem is when i have the data as "ABC6252756/ A#1829533" .when i have this kind of data val2 i not being passed to approve.php
where as when we have this kind of data  "ABC07- USVDL2" it value is being passed succesfully. 
Do we have any kind of problem with the (/,#) characters . For Safe Side i have put the alert for the  val2 for  ("ABC6252756/ A#1829533") this data 
It came up succesfully . What might be the problem?</p>
