Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Integrating with PayPal HTML Forms

Matthew Bingham
Matthew Bingham
11,927 Points

Can we re-word this challenge?

Grammar isn't really my strong point but I had to read over this sentence (more than) several times.

"First, we need the data submitted to a process.php file in the same folder as this form.html. "

Can we replace with something like "First, we need to extract the data from a file named process.php that exists in the same folder as form.html." ...or at least something a little easier to comprehend.

3 Answers

Kevin Korte
Kevin Korte
28,149 Points

I also think it reads fine to me, but I also understand that the use of the English language has many origins for a lot of us, which can lead to different "versions" in today's online culture.

I'll tell you why I like the way it's worded now. Using words like "submitted" implies the action the data took, and that forms usually submit, so there are some clues there.

I read the two sentences differently.

When I need data that was submitted to a file, is different to me than data extracted from a file. One says the data we sent over here, the second one says go here and get this data. It's too different meanings to me.

The second version I also feel is a bit too wordy, with things like from a file named and that exists in could lead to further confusion for another user. Short and concise should always be the key. But that's just my 2 cents.

EDIT

I just went and read the context of the challenge. Your suggestion is the opposite of what the question is informing you to do. The question is informing you to take the data of the form, and send it to a process.php file. You're suggestion of extracting the data from a process.php file doesn't work. It would imply the data is already there and we are retrieving it. We're not. We are sending data to the file, not getting it from the file. Hope that was more clear.

Matthew Bingham
Matthew Bingham
11,927 Points

Late night, too much coffee and written before I completed the challenge. * Mouth now zipped * (but thanks for the comments all the same).

Kevin Korte
Kevin Korte
28,149 Points

Ha I've been there! Not long ago I completely misread someones question and provided an answer that had nothing to do with what they were actually asking for. Than I continued to disagree with someone over a convention when he was actually answering the question correctly. After I realized my mistake, I had to agree with the answer of the guy I had argued my disagreement with. I had to put my foot in my mouth.

It happens to all of us. No worries.