Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PHP Code that worked before has stopped working
PHP Code that worked before has stopped working [message #1774811] Thu, 19 October 2017 20:47 Go to next message
Stephen Beyer is currently offline Stephen BeyerFriend
Messages: 1
Registered: October 2017
Junior Member
We have some sample exercises for students that we developed in Eclipse Neon.

For many months they have worked well.

Students open the HTML code in Using > Web Browser via Eclipse. The HTML form calls the simple PHP code.

As I said the code has worked well in the past...but has suddenly stopped working.

We have used Eclipse as the IDE and would hate to change. But, the issue is baffling.

Here are the two files ( I am sure many of you will say there are ways to improve the code...but we are teaching specific concepts here and are not looking for optimized code at this stage):
First the HTML file:
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Enter Grade</title>
</head>
<body>

<form action="Exercise_2.php" method="post">
Enter your grade: <input type="text" name="grade"><br>
<input type="submit" value="Submit">
</form>

</body>
</html>

Second the PHP file (Exercise_2.php called in the action statement of the form above)
<html>
<title>Grade Check</title>
<body>

<?php
$grade = $_POST["grade"];

if ($grade >= 60) {
echo "Congratulations, you passed";
}
?>
</body>

</html>


Re: PHP Code that worked before has stopped working [message #1774901 is a reply to message #1774811] Sat, 21 October 2017 02:24 Go to previous message
Diamond Gate is currently offline Diamond GateFriend
Messages: 2
Registered: October 2017
Junior Member
I tried the code, it's stopped now.
You're right
Previous Topic:Uses inside Comment are threat as unused
Next Topic:Line height in editor apparently changing randomly
Goto Forum:
  


Current Time: Thu Nov 15 19:54:52 GMT 2018

Powered by FUDForum. Page generated in 0.02115 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top