Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can you insert javascript in php code?

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


Please Help Members By Posting Answers For Below Questions

What is the use of stripslashes in php?

926


Can the value of a constant change during the script's execution?

930


What are the rules for naming a php variable?

989


How do you check if a variable has been set in php?

916


What is the goto statement useful for?

952


What is preg_match?

904


Is php better than java?

922


What is query string php?

923


Define about declare construct?

984


What is the use of imagetypes() method?

936


What is use of header() function in php? What the limitation of header()?

920


What is a composer in PHP?

890


Write a php function to convert all null values to blank?

1257


Explain the casts allowed in PHP?

979


Can I learn laravel without php?

963