Jump to content

Night Baron

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Night Baron

  1. Firefox is my favorite browser and my second favorite is Chrome, because of the lack of skins/add-ons.
  2. You could use Ajax to send the JS variables to PHP Ajax Code: (found off of daniweb) <script type="text/javascript"> function Send() { function GetXmlHttpObject() { var xmlHttp=null; try { // Firefox, Opera 8.0+, Safari xmlHttp=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } } return xmlHttp; } xmlHttp=GetXmlHttpObject(); xmlHttp.onreadystatechange=changeofState; //change the page below to you php page name var url="something.php"; //change 'variable' to the name of the javascript variable that contains the dollar amount url = url+"?amt="+variable; url = url+"&sid"+Math.random(); xmlHttp.open("GET",url,true); xmlHttp.send(null); function changeofState() { if(xmlHttp.readyState==4) { document.write('ok'); } } } </script> Another way that you can do it is using JS to redirect the page. <script language="JavaScript"> var sendvar = 55; location.href="something.php?key=" + sendvar; </script>
×
×
  • Create New...