I'm new to PHP and I'm following the PHP tut on w3schools. I am using Eclipse's latest IDE version (3.6 I think). for my script helloDriver.php it functions fine when ran as a php script. it doesn't on my html file especially when I use a similar method to the example from w3schools: http://www.w3schools.com/PHP/php_forms.asp
This would be my code for helloDriver.php:
<html>
<body>
go
<?php
echo "giga";
?>
power rangers
</body>
</html>
This is my code for homepage.html
<html>
<body>
Hey
<form action="helloDriver.php">
<input type="submit />
</body>
</html>
"Hey" and "go" both display so I know that the php file is being called but I don't know why the echo command doesn't.
Even before this I copied line by line with what the w3schools example was with the exception of welcome.php since that is helloDriver.php
How I access the html file is double clicking it since Eclipse doesn't have any options to run the program. Any ideas what I am doing wrong?