I have a PHP project which needs 2 minor modifications.
The current project can be viewed at this link:
<[login to view URL]>
I need to be able to specify 1-5 lines of text and have these
lines printed on the main input form, in the email and in the printouts (available by clicking on the Email and Print buttons).
In the current project, you can see this text as "Kevin was here" once you
click on Calculate. However, the "Kevin was here" is hard coded and I need it to be a variable. The value of this text is dependant on the value of $answer (the calculated result).
If $answer < 10 then
$notes = $answer . ' is too low and diameter must be increased'
ElseIf $answer < 40 then
$notes = $answer . ' is correct' . line feed . 'You answer is valid' . line feed . 'Forward ' . $answer . ' to your customer'
Else
$notes = $answer . ' is too high and pressure must be increased'
EndIf
I want a major title of the code to be a global variable set in CalculatorSettings.php. In the current code, this title will appear:
1) Where the string "Port Flow Efficiency Calculator" appears (after Performance Trends) at the top of the main form.
2) As the default "Subject" in the Email form.
3) Where the string "Engine Size Calculator" appears (after Performance Trends) at the top of the email form.
4) As the page title at the top of the Email form.
5) Where the string "Port Flow Efficiency Calculator" appears (after Performance Trends) at the top of the print form.
6) As the page title at the top of the print form.