URLs

Hi all,
I’m trying to replicate how a checkbox in my code works. Basically it calls a javascript function with onclick which is:
function showArchive() {

 f = document.quoteForm.showarchive.checked;
if(f == true)
   window.location =('./index.php?m=quotes&showarchive=show');
else
  // window.location =('./index.php?m=quotes&showarchive=noshow');
  window.location =('./index.php?m=quotes&showarchive=noshow');

}

I dont understand how urls are supposed to be defined. where is “./index.php?m=quotes&showarchive=show” coming from?

Are you using any form in the script? It looks like its coming from there,most probably by GET method.

I figured out that I define the urls myself

Sponsor our Newsletter | Privacy Policy | Terms of Service