Javascript decodeURIComponent() with PHP
<p>I'm encoding URL's using javascript's <a href="http://www.w3schools.com/jsref/jsref_encodeuricomponent.asp" rel="nofollow">encodeURIComponent()</a> function when a form is submitted:</p>

<pre><code>  &lt;form name="form" action="actions.php" method="post"&gt;

      &lt;input type="text" name="url" id="url" value="http://"&gt;

      &lt;script type="text/javascript"&gt;

        function encodeLinks(){
            var e = document.getElementById('url')
            e.value = encodeURIComponent(e.value);        
        }  

      &lt;/script&gt;

        &lt;button type="submit" class="btn btn-primary" onclick="encodeLinks()"&gt;Submit&lt;/button&gt;
    &lt;/form&gt;
</code></pre>

<p>What is the most efficient way to get that data back into javascript on the actions page in order to decode it and then use it in a mysql query?</p>
