mikeducey / php-oo-converter

This site will be a converter of different measurements - done in PHP following OOP protocol
0 stars 0 forks source link

Help with converter.php (but really, functions or controller? #1

Open mikeducey opened 8 years ago

mikeducey commented 8 years ago

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

, line 16.

Sequence of events:

  1. I entered in a value like 100 in the text box to convert distance.
  2. I selected "miles".
  3. 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)

mikeducey commented 8 years ago

shoot, just noticed it didn't like my html. I'll post line sixteen: div class="resultsText resultsText__number"

mikeducey commented 8 years ago

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.

sumeetjain commented 8 years ago

shoot, just noticed it didn't like my html. I'll post line sixteen: div class="resultsText resultsText__number"

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

sumeetjain commented 8 years ago

My comment above is from before your most recent comment, so there might be some minor discrepancies.