script code

script code

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
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.  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
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:ADS_TO_REPLACE_1 Flex Application Thanks
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
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
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  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  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  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> <
painless script trim string
VIETNAM  The elasticsearch painless script is essentially a groovy script which is compiled and run on JVM level. You can write Java code in groovy painless script. The trim() method of String class is used for trimming the data
painless script trim string
VIETNAM  The elasticsearch painless script is essentially a groovy script which is compiled and run on JVM level. You can write Java code in groovy painless script. The trim() method of String class is used for trimming the data
painless script trim string
VIETNAM  The elasticsearch painless script is essentially a groovy script which is compiled and run on JVM level. You can write Java code in groovy painless script. The trim() method of String class is used for trimming the data
code
of these kind. print("<html> <head> <Script language
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
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 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
Code
Code  code for connecting c lang to database
code
code    how to write this in java
code
code  code for android sample program
code for this is
code for this is  a b c d c b a a b c c b a a b b a a a code
code
code  please provide code for custom tags.by using currdate tag we need to get current date?please give me code
code
code   hi I need help in creating a java code that reminds user on a particular date about their festival. i have no clue of how to do it.. am looking forward to seek help from you
code
the correct code for a program.The output of the program is listed below...: {Block 5} ADDRESS-3: {San Juan} POST CODE:{6745} ENTER CODE (XX TO stop) CODE:{FF1} QUANTITY:{2} CODE:{TR4} QUANTITY:{1} CODE:XX INVOICE FOR YOUR ORDER Harry
code
code to create the RMI client on the local machine: import java.rmi.*; public... : "+e); } } } However, when the preceding code is executed it results... the correct code
code
code  i have four textboxes.whenever i click on up,down,left or down arrows then the cursor move to another textbox based on the key pressed.i want code for this in javascript
code
line of code to print the amount he should be paid as allowance
code
code  write a program to encrypt and decrypt the cipher text "adfgvx"   Hi Friend, Try the following code:ADS_TO_REPLACE_1 import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; import
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
How to use email validation check through java script in jsp page
; This is detailed java code that explains how to use java script validator in jsp page...;Javascript"> /* This is code to check valid email using java script. */ function... How to use email validation check through java script in jsp page
Set the size of visual components using action script in Flex4
Set the size of Visual Components using Action Script in Flex4: In this tutorial you can see how to set Size for a visual component in action script code in Flex 4. Example:   <?xml version="1.0"
Separating custom code in different file
Separating custom code in different file We can separate custom code in the separate custom java script file. In this example ,we put the jQuery script... to separate the JavaScript code into a separate file. So, beginners must understand
ModuleNotFoundError: No module named 'script'
ModuleNotFoundError: No module named 'script'  Hi, My Python... 'script' How to remove the ModuleNotFoundError: No module named 'script'... to install padas library. You can install script python with following command

Ads