how to put value/parameter in javascript
<p>I'm a newbie in php. so anyone can help me to solve this issue?</p>

<p>The situation:
User can add an application (channel) that they want. So when user adds an application, one prompt will ask user confirm to add application (*with name of application and ID) or not? </p>

<p>The problem is i don't know how to call/put that value in javascript. hope anyone can help me as well :)</p>

<p>Here code I'm using:</p>

<pre><code>         Application ID: &lt;input type="text" class="txt" name="widget_id" value="" size="30" /&gt; 
         &lt;INPUT TYPE="hidden" NAME="box_id" value='&lt;?=$user_box_id;?&gt;'&gt;
          &lt;INPUT TYPE="hidden" NAME="user_name" value='&lt;?=decode($user_name);?&gt;'&gt;

         &lt;input type="submit" class="btn" name="addapp" value="Add Apps"  onClick="javascript:if(confirm('Are You Sure To Add This Apps? ')) location='&lt;?php echo site_url("$url/box/add_User_App/".$Add_apps['box_id']."/".$Add_apps['user_name']."/".encode($Add_apps["widget_id"]) )?&gt;'"&gt;&lt;/a&gt;&lt;/td&gt;
</code></pre>
