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 session_start () in php?

0 Answers  


What is default session time in php?

0 Answers  


What are the differences between procedure-oriented languages and object-oriented languages?

6 Answers   ASD Lab, DewSoft,


What do you mean by design patterns (php) ?

1 Answers   NIIT,


what is constructor

0 Answers  






Tell me how comfortable are you with writing html entirely by hand?

0 Answers  


What is var_dump?

0 Answers  


Is variable name casesensitive in php?

0 Answers  


How to read the entire file into a single string?

0 Answers  


What Is a Persistent Cookie?

0 Answers  


How to set cookies in PHP?

0 Answers  


Which php mvc framework is best?

0 Answers  


Categories