save javascript function to mysql
<p>how do i save the output from javascript function to mysql??</p>

<pre><code>    var macs = {
        getMacAddress : function()
        {
            document.macaddressapplet.setSep( "-" );
return (document.macaddressapplet.getMacAddress());
        }
    }

document.write(macs.getMacAddress());
</code></pre>

<p>someone told me to use ajax, but ive tried to figure out but cant get anything..
Anyone would be good to help me. thanks</p>
