Jump to content

Convert html code in php for display a varaible value inside javascript code


netbie

Recommended Posts

I have the following code in html:

 

<html>

<head>

<script type="text/javascript">

<!--

function delayer(){

    window.location = "http://VARIABLEVALUE.mysite.com"

}

//-->

</script>

<title>Redirecting ...</title>

</head>

<body onLoad="setTimeout('delayer()', 1000)">

 

 

 

<script type="text/javascript">

var sc_project=71304545;

var sc_invisible=1;

var sc_security="9c433fretre";

</script>

 

<script type="text/javascript"

src="http://www.statcounter.com/counter/counter.js"></script><noscript>

<div

class="statcounter"><a title="vBulletin statistics"

href="http://statcounter.com/vbulletin/"

target="_blank"><img class="statcounter"

src="http://c.statcounter.com/71304545/0/9c433fretre/1/"

alt="vBulletin statistics" ></a></div></noscript>

 

 

</body>

</html>

 

Is a basic html webpage with a timer redirect script and a stascounter code.

 

I know a bit about html and javascript, but almost nothing about php.

 

My question is:

 

How a can convert this html code into a php file, in order to send a variable value using GET Method and display this variable value inside the javascript code where says VARIABLEVALUE.

 

Thanks in adavance for your help.

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.