I entered in a value like 100 in the text box to convert distance.
I selected "miles".
Clicked Submit.
Expected: The form submits and I'm directed to a new page that displays the converted value.
Actual: Directed to a new page with no results displayed.
I have tried to format the controller and the functions differently, to no avail. Am I missing something easy? I used phpcodechecker and know that there aren't simple errors (at least that it could find)
Also, I have slightly edited the converter.php page, I think a function was not being called on a variable correctly. The problem still persists, however.
As is, the variables printing out what should be the distance conversion do not display. When I view source on http://localhost:8888/distanceconvert.php?distance=200&distanceUnit=miles, The source code shows up, but stops after
Sequence of events:
Expected: The form submits and I'm directed to a new page that displays the converted value.
Actual: Directed to a new page with no results displayed.
I have tried to format the controller and the functions differently, to no avail. Am I missing something easy? I used phpcodechecker and know that there aren't simple errors (at least that it could find)
shoot, just noticed it didn't like my html. I'll post line sixteen: div class="resultsText resultsText__number"
Also, I have slightly edited the converter.php page, I think a function was not being called on a variable correctly. The problem still persists, however.
Use the backtick character to insert code next time. Or use the formatting bar:
As for your question, here's what I did to debug it (There's no sound, but you can see what I was doing): https://www.dropbox.com/s/0itbj7m1zfv947j/07-27-mike.mp4?dl=0
My comment above is from before your most recent comment, so there might be some minor discrepancies.