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 Building Websites with PHP Contact Form & Sending Email POST Route & Data

Thanitsak Leuangsupornpong
Thanitsak Leuangsupornpong
7,490 Points

Why teacher have Alert that tell NO @ but me there no alert that tell like that?

Thanks you for help!

2 Answers

kabir k
PLUS
kabir k
Courses Plus Student 18,036 Points

Hey Thanitsak,

I don't know if you have resolved the issue of not getting a validation warning when the @ symbol is omitted from the email address on the contact page. If you have followed the video exactly as the teacher's and you're still not getting the validation alert, you might wanna try your workspace link in Google Chrome as suggested in this post

Hope this helps.

kabir

That is html5 form functionality. It has to do with the type of the field in the form. So to enable it your email field in your form should be

    <input name="email" type="email" placeholder="Email Address" required>  

in the above instance type should trigger basic html5 verification. You can also add a required field which means the field has to be filled out.

kabir k
kabir k
Courses Plus Student 18,036 Points

hey carlos, I have the field type of email (like in the input tag above), yet I did not get a warning alert for excluding the @ sign