Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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!