Jump to content

PHP secure URL + Javacript reload page function


hmsilveira

Recommended Posts

Hi all,

 

I'm a little bit confused how can i pass secure URl to javacript function. I have one javacript function to reload page and take one id:

 

<script type="text/javascript">

function refresh_page(x)

{

//window.location.search="?parameter1=true&parameter2=6";

window.location.search="?id=" + document.getElementById(x).value;

}

</script>

 

But now i would like to send the id variable encrypted with secure url class. I should make something like this:

 

$secureurl = new secureurl;

 

$secureurl->encodeURL('id=' . document.getElementById(x).value)

 

Any ideas will be much appreciated.

 

Thanks a lot.

 

Looking forward for your answers.

 

Hugo

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.