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 Basic PHP Website (2018) Enhancing a Form Error Message Priority

Humberto Sifuentes
Humberto Sifuentes
7,694 Points

Error Messages without format

I´m not getting the yellow background in the name en email input boxes. Nor the fancy yellow messages alerts right on top of the form. I went back my steps trying to find the video I possibly skipped, but I can´t find the moment where those features were added to the page.

Does any body remembers the video I could be possibly skipping??

Hi Humberto,

Are you doing this locally or in workspaces? Post a snapshot if you're doing this in workspaces which would make it easier to troubleshoot.

Is your html/php correct but you don't think you have the correct css styling?

1 Answer

Ricky Johnston
Ricky Johnston
27,445 Points

Hey Humberto!

The styling was baked in to the CSS that's provided with the project. You need to make sure your $error_message variable is wrapped inside a <p> tag with the class "message" applied.

Hope this helps!