Answer Posted / vivek srivastava
You can write Java Script in PHP in a very simple way so as
I did:
<?php
some php code...
?>
<script type="text/javascript">
function someFun()
{
function code....
}
</script>
<?php
some php code...
?>
| Is This Answer Correct ? | 72 Yes | 18 No |
Post New Answer View All Answers
How to get the http request in php?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
How would you declare a function that receives one parameter name hello?
Why php is also called as scripting language?
With a heredoc syntax, do I get variable substitution inside the heredoc contents?
How do you display the output directly to the browser?
Tell me how can we check the value of a given variable is alphanumeric?
Where are cookies stored php?
How to retrieve the original query string?
Tell me what is the use of "ksort" in php?
What does $globals mean?
What is good average session duration?
What does session start do in php?
Can I learn php without knowing c?
What is the use of Mbstring?