Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


sakthi
script code
1 Answer(s)      5 years and 10 months ago
Posted in : Java Beginners



Advertisement
View Answers

February 12, 2009 at 5:00 AM


Hi friend,


Code to help in solving the problem :

<html>
<head>
<title>Hello PHP World</title>
<script type="text/php" language="php" >

<?php
function addition()
{
$a=5;
$b=5;
$add= $a + $b;
return $add;
}
?>


</script>

</head>
<body >
<?
echo addition();
?>
</body>
</html>

Thanks


Related Tutorials/Questions & Answers:
script code - Java Beginners
script code  hi, thanks for ur fast reply. plzz, give me a sample code for PHP function under script tag. regards, sakthi  Hi friend, Code to help in solving the problem : Hello PHP World
java script code
java script code  Hi Deepak, Firstly wanna share the problem em facing: working with servlet and jsp for my project. I have 3 main jsp pages which interacts with user for accepting user input and supply them
Advertisements
java script code problem - Java Beginners
java script code problem  Dear sir, my problem is that, suppose i've two HTML files(with java script), out of them one has function EMPLOYEE_DETAILS() i want to call this EMPLOYEE_DETAILS() fuction to another Html file, how
Java Script Code Problem - JSP-Servlet
Java Script Code Problem  how to concatenate html table values(there are 3 rows,each row contains 3 fields) into variable and display it using javascript  Hi Friend, Try the following code: document.write
java script code - Design concepts & design patterns
java script code  I want make header like-http://www.sigmainfotech.com.au/ this site but in this site header make in flash, I use java script or any other script. like that side click left side image it expand in header
can i Execute PHP code inside python script?
can i Execute PHP code inside python script?    can i Execute PHP code inside python script
JAVA SCRIPT CODE FOR OPENING A WEBSITE IN A NEW WINDOW - Java Beginners
JAVA SCRIPT CODE FOR OPENING A WEBSITE IN A NEW WINDOW   PLS TELL ME? HOW CAN I DEFINE A WINDOW.OPEN FUNCTION WITHIN ANOTHER FUNCTION e.g..." FUNCTION TO PERFORM ALL FUNCTIONS ON CLICK.  Hi friend, Code to help
Java Script Code of Calendar and Date Picker or Popup Calendar
Java Script Code of Calendar and Date Picker or Popup Calendar...; This is detailed java script code that can use for Calendar or date picker or popup... selected date from the date picker.  2: calendar.js: Java script code file
Java script
Java script  Source code for capturing the screen using Java Script
Java Script
Java Script  Hi, Any one please share a code to swap the 2strings using java script
Java script
Java script  a java script code for accept 10 numbers from the user and print in the descending order without using sort method
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script
. Try to send me java script validation code for this purpose that user won't...Java Script  Hello Sir, Is it possible to select only current date from datetimepicker in struts2 through java script validation. Means when i select
Java Script
Java Script  why we are using java script
Java Script.
Java Script.  The below code is nit working in Google chrome can any one tell me the solution as soon as possible. <script type="text/javascript"> <!-- function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi i want to submit two form using javascript.The below code submitting two forms in server but its not working in browser like chrome and firefox am struggling for many days give me solution as soon as possible
script for data
script for data  how to write a simple script to display a selected data from list in flex applicatin?.   Hi Friend, Please visit the following link: Flex Application Thanks
Java Script
Java Script  What is Java Script? How to learn Java Script?   Hi Java Script is client side programming language. It runs on browser.... You can learn Java Script from our JavaScript - JavaScript Tutorial pages
Window Script
Window Script  i want to write windows script can you help me in writing those i want to write script so that it follows below steps Step 1) downloading file from FTP 2) Unzip it 3) Edit it 4) zip it 5) upload again to FTP
java script
java script  Hi, Any one please tell me how, to store below elements in an array using java script 12,13,14,a,b,xyz
java script
java script  how to write a Java script program to enter number in two text fields and then automatically display the total in another text field
java script
java script  write a java script code which provide a menu for user which will enable him/her to either add or subtract or multiply or divide two numbers and produce the corresponding result.   <html> <
Export to Shell Script Plugin
. This allows for the execution of java code OUTSIDE the Eclipse environment without having to custom write the shell script code For more information click... Export to Shell Script Plugin   
java script
java script  how will you identify whether the number entered by the user has two digits or three digits.Assuming that the user enters only a three digit or two digit number.   <HTML> <HEAD> <SCRIPT
Script#
Script#       Script# is a C# compiler and set of frameworks that makes it possible to write Javascript and Ajax applications in C#, enabling you to benefit from compile-time type
Example program to pass value from Html to java script
html code to java script easily. To show this we have created an example Html page which will pass the value to the java script function and this value... Example program to pass value from Html to java script
script problem - Java Beginners
script problem  Even though both .js file and .jsp file present in the same location,script is not working in mozilla but working in Internet...() { if(document.add.fname.value=="") { alert("Enter fname"); } else{} } This is the code
form to java script conversion
form to java script conversion  I am using a form one more form cotain a piece of code . how to convert it to java script to function it properly? code is shown below <form action="http://www.google.com" id="cse-search
Advertisements
 

 

 

DMCA.com