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 do you mean by having php as whitespace insensitive?
Which is best framework for php?
In mail($param1, $param2, $param3, $param4), the $param2 contains__
How to set cookies?
What is the current stable version of php? What advance thing in php7?
How do you check is php not empty?
What is the difference between md5(), crc32() and sha1() crypto on php?
Explain about require and include function?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
What is the output of the ucwords function in this example?
Inside a php function, what param needs to be set in order to access a global variable?
How to remove leading and trailing spaces from user input values in php?