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

How to replace a substring in a given string?

0 Answers  


How many types of session are there?

0 Answers  


How to execute an sql query? How to fetch its result?

0 Answers  


How about integrating an iKode Newsletter Server at my independent Wordpress blog site? I just wanna visitort can subscribe my blog when they like it and I can send some interested articles or events to them regularly to establish good relationship.

1 Answers   iKode,


What is php and what does it do?

0 Answers  






Is it possible to extend the execution time of a php script?

0 Answers  


Why php is better?

0 Answers  


Explain how is it possible to set an infinite execution time for php script?

0 Answers  


How to install PHP with --mcrypt and --mhash?

1 Answers  


Explain me what is the difference between explode() and split() functions?

0 Answers  


how to install openssl, ISAPI, pdf modules in php 5.2.5 with apache on windows xp.

2 Answers  


What do you mean range() in php?

0 Answers  


Categories