Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables *** Please Help *** 1

Status
Not open for further replies.

chuckbridges

Programmer
Apr 15, 2005
19
US
I want my Java Variable to be set by my PHP variable

I have a Variable called Siteip Its a java variable

I have a Variable called $ip that is PHP

how do I set the Siteip variable to equal the $IP in PHP ?


Thanks
 
you mean Java or javascript?

javascript:
Code:
<script type="text/javascript">
var Siteip = "<?php echo $ip ?>";
</script>

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top