如何获取html的输入类型文本的值到php并打印[关闭]

Hi guys I have recently started php and I am stuck at a place where I a unable to get the value of input type of html to php. I am using Aptana to develop a website. please tell me where or what I am doing wrong. I didn't find any working answer in stackoverflow also. please help me.

I am just viewing the HTML file in my browser is that a problem?

my code is as below

FirstWebPage.html

<!DOCTYPE html>
<html>
<body bgcolor="#ffffff">
<h1 style="font-size:44pt" align="center">myPersonals.com</h1>

<h2 align="center">Welcome to your personal data center </h2>
<form action="welcome.php" method="get">
<div align="center">
<h3>Login</h3>
<input style="height:20px; width:200px; font-size:14pt" type="text" name="email" placeholder="Email" style="#b8b9c8">
<br>
<br>
<input style="height:20px; width:200px; font-size:14pt" type="text" name="password" placeholder="Password">
<br>
<br>
<select name="sex" style="height:30px; width:200px; font-size:14pt">
<option value="m">Male</option>
<option value="f">Female</option>
</select>
<br>
<br>
<input style="height:30px; width:200px; font-size:14pt" type="submit" value="Submit">
<br>
</div>
</form>
<a href="bigDB.jpg">
<img src="smallDB.jpg">'
</a>
</body>
</html>  

Here is my welcome.php

 <html>
 <body>
 Welcome php Surendra Reddy your email id is <?php echo $_GET['email']; ?><br>
 and you are password is <?php echo $_GET['password']; ?><br>
 and your gender id <?php echo $_GET["sex"]; ?>
</body>
</html> 

But it is not printing the values

Thanx in advance

/// will works if you use post instead get

I tried your code with post and get methods and runs good, you need try the code in xampp or something diferent that aptana, the code works, may could some about aptana server configurations