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 |
What is php addslashes?
Tell me what is the main difference between php 4 and php 5?
Write a program to swap two numbers using php.
When do sessions end?
Define object-oriented methodology?
What is the use of trim function in php?
What are php strings?
Why and where do we use htaccess?
Explain the changes in php versions?
Tell us how can we display the output directly to the browser?
How to check a variable is an array or not in php?
List out the predefined classes in PHP?