Answer Posted / 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 View All Answers
How to access a specific character in a string?
What is the output of the following php code?
When viewing an html page in a browser, the browser often keeps this page in its cache. What can be possible advantages/disadvantages of page caching? How can you prevent caching of a certain page (please give several alternate solutions)?
Can php replace javascript?
What does isset() function?
What does $_server means?
Why php language is used?
Define anonymous classes in php7?
How to call javascript function in php without any event?
Is java is better than php?
How to check a variable is an array or not in php?
How to make a class in php?
What are psrs? Choose 1 and briefly describe it?
What is the correct and the most two common way to start and finish a php block of code?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?