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

Why namespace is used in php?

0 Answers  


Is there any function to find repeated value in an array? What is w2 standard

1 Answers  


how to set session expire(session timeout) using php code

2 Answers  


Tell me how is it possible to propagate a session id?

0 Answers  


What is the difference between single-quoted and double-quoted strings in php?

0 Answers  


How to check a variable is an array or not in php?

0 Answers  


How to find datatype of variable in php?

0 Answers  


How to access a specific character in a string using php?

0 Answers  


What does $this do in php?

0 Answers  


Which is better php or nodejs?

0 Answers  


How long is session timeout?

0 Answers  


hi here one small project given to me in an software company during interview. one page that would count down till 9pm (today means every day before 9pm it would count down to zero) this means there will show how many mins. sec. and hours are left till 9pm so it would be like 1 hr 20 mins 23 sec. then it up count down every sec and then show 1hr 20mins 22sec left till 9pm once the count down reaches zero it would show a flesh player video will autostart. the flash player will be from http://www.longtailvideo.com/players/jw-flv-player/ (the player is embed into the page.) that same page will track to see if they have already seen the video using php sessions then if they go back to that page it would redirect them to a new page saying that they have already wathed the video.

1 Answers  


Categories