Reputation: 57
I am struggling to resolve a very easy task. I am very new to programming of any nature. Appreciate help.
1: I am passing below URL from a form to a .php code http://localhost:8080/StaticLoginPage/FormProcessor.php?uname=mandar
2: PHP Code below - In this code I am not able to print uname on the page. Output only displays Welcome and no uname.
3: Additional info: I am using Eclipse latest version I am working in "Static Web project"
<html>
<head></head>
<body>
Welcome <?php echo $_GET["uname"]; ?><br>
</body>
</html>
Upvotes: 0
Views: 58
Reputation: 763
you need a php server like apache to use php and you need to save your file as a .php file
Upvotes: 0
Reputation:
To to this you have to run your code in a php server like apache. the following link might help.
http://editrocket.com/articles/php_apache_windows.html
Upvotes: 2