Codeasearch.com - Search your code with us Login | Register | Contact us
  Forums > Javascript > Passing JavaScript Variable Value to PHP Variable.
najeebputhiyallam
Posted on Jun 28, 2009
Join Date: March 2009
Location: India ( Bangalore )
Posts: 12
 
Passing JavaScript Variable Value to PHP Variable.  

How to access Javascrit Variable value from PHP code...

kevin
Posted on Jun 29, 2009
Join Date: May 2008
Location: India ( chennai )
Posts: 4978
 
RE : Passing JavaScript Variable Value to PHP Variable.  

There are 3 ways one ajax you can values without reloading.
And another one is embeding javascript in php

echo "<script language='javascript'>";
echo "alert('welcome');";
echo "</script>";

And also embeding php in javascript

<script language="javascript">
alert(<?php echo "welcome"; ?>);
</script>

 Hot Discussion
Go Tech launches Android tablet for Rs 3,999...
Sony targets retailers with quick sales pitches and rew...
Share and discover new activities with Google Schemer...
Samsung gets 9 mn preorders for Galaxy S3: Report...
Google revamps search engine to think like a person...
 
 Discussion Topics
IT News
Php
Javascript
Technology Updates
Asp.Net
MySql
Ajax
Html
Fedora
Software Testing
Asp
Java
General
Flash
Ruby on Rails