New to PHP
Hallo everybody. I am a newbee in PHP5 and I am programming it under Eclipse 3.0. I have written a PHP file but it cannot define my variable that's why I cannot see the result as I expected it so. Here is the code sample
Deneme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<!--
* Created on 27.05.2005
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
-->
<head>
<title> </title>
</head>
<body>
<form action = "Deneme.php" METHOD ="POST">
Please type your name here: <br/>
<input type="text" name="username" /><br/><br/>
<input type="submit" value="Submit Data"/>
</form>
<br/><br/>
</body>
</html>
Deneme.PHP
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en_US" xml:lang="en_US">
<!--
* Created on 27.05.2005
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
-->
<head>
<title>Deneme </title>
</head>
<body>
<?php
/*
* Created on 27.05.2005
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
echo("Welcome".$username."!");
?>
</body>
</html>
It writes at the end only "Welcome!". These two files are under the same Order and I am using the latest Apache version. Wheere did I make a mistake?
__________________
Your attitude determines your altitude
|