Jump to content

how to put a php from variable in java


Baabu

Recommended Posts

well this worked but how should i make it work for a php variable

<script>

$url="http://mysite.com"

setTimeout("location=$url", 3000); // Execute the statement location='index.php' after 3000 miliseconds (3 seconds)

</script>

 

i want to know how to use it with this form

<?php

  $url="http://mysite.com"

?>

<script>

setTimeout("location='$url'", 3000); // Execute the statement location='index.php' after 3000 miliseconds (3 seconds)

</script>

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.