Jump to content

[SOLVED] Syntax error? parse error help


crossfuse

Recommended Posts

okay i'm learning PHP in my college class and i'm making a program as an assignment and well...it's quite frankly pissing me off >:( 

 

that's the website to the program and can someone point out my problem?

 

http://cpsc.maconstate.edu/students/justin.ham/debt.html

 

<html>

<body>

<title>Debt</title>

<?php

 

$debt = $_POST["debt"];

$income = $_POST["income"];

$totdebt = $_POST["totdebt"];

 

{

 

$totdebt = ($debt / $income) * 100 ;

 

 

 

if ($totdebt < 15); {

  print ("Credit is approved.");

elseif ($totdebt < 30); {

  print ("Credit is borderline.");

}

    elseif ($totdebt > 30); {

  print ("Credit is NOT APPROVED.");

}

 

}

 

 

?>

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/147812-solved-syntax-error-parse-error-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.