hi, i have the following code on my send.php page.

<html>

</body>

<form method = "POST" action = "receive.php">

Username <input type = "text" name = "Uname"></br>
Password <input type = "password" name = "pwd"></br>

<input type = "Button" value = "Send"></br>
<input type = "Reset" value = "Clear">

</form>

</body>
</html>


and the following code is on receiving page.


<?php

$name = $_POST['Uname'];
$pass = $_POST['pwd'];

echo $name;
echo $pass;

?>


when i press the send button on sending page so data does not go another page and when i individually open the receiving data page, so it gives error

( ! ) Notice: Undefined index: Uname in C:\wamp\www\receive.php on line 3
Call Stack
# Time Memory Function Location
1 0.0015 362360 {main}( ) ..\receive.php:0

Why i am hving this problem