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 |
How to support multiple-page forms?
How to return a value back to the function caller?
Write a program to upload a file in php?
Does php have future?
Which is better #define or enum?
Does not want to see PHPSESSID in the url. How can be done this ?
I have done 12th and then i completed 2 years course of web designing and development from xplora design skool, kota(rajasthan). I am a fresher. How much can i earn in this field ?
What is the difference between $message and $$message in php?
What is an anti csrf token?
Can we learn php without html?
How I use global variable in another page without using $_GET method?
How to check if a string contains a character or word in php?