how to get the value in script values

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


Please Help Members By Posting Answers For Below Questions

What does == mean in php?

522


What is the difference between client-side and server-side programming?

543


Is php fully object oriented?

488


How do I repair phpmyadmin?

524


Explain me what is the w3c?

574






Write a program to find the factorial of a number in php?

534


Which parts of php are case sensitive?

499


What should we do to be able to export data into an excel file?

520


is that "enumerated array" equal to "numeric array"?

2027


Explain the casts allowed in PHP?

590


What are php parameters?

530


Explain how you can update memcached when you make changes to php?

565


What is the use of print_r function in php?

521


What's the output of the ucwords function in this example?

555


What is apache and php?

497