how to get the value in script values



how to get the value in script values ..

Answer / p.sivasankar

ex:in java script
function DLEAVEValidate()
{

alert(window.document.getElementById("V_DLEAVE").value);
}

in php:
<form action="welcome.php" method="get">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
Welcome <?php echo $_GET["name"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
(or)
Welcome <?php echo $_REQUEST["name"]; ?>.<br />
You are <?php echo $_REQUEST["age"]; ?> years old!

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More PHP Interview Questions

What is php addslashes?

0 Answers  


Tell me what is the main difference between php 4 and php 5?

0 Answers  


Write a program to swap two numbers using php.

0 Answers  


When do sessions end?

0 Answers  


Define object-oriented methodology?

0 Answers  


What is the use of trim function in php?

0 Answers  


What are php strings?

0 Answers  


Why and where do we use htaccess?

0 Answers  


Explain the changes in php versions?

0 Answers  


Tell us how can we display the output directly to the browser?

0 Answers  


How to check a variable is an array or not in php?

0 Answers  


List out the predefined classes in PHP?

11 Answers  


Categories