Skip to content

Conversation

@M365x97983776
Copy link

What I Changed

Added email validation to the contact form to prevent invalid submissions.

Changes Made

  • Added regex pattern for email validation
  • Added error message display for invalid emails
  • Updated form styling for error states
  • Added unit tests for validation function

Testing

  • Tested with valid emails ([email protected])
  • Tested with invalid emails (user@, @example.com, user)
  • Error messages display correctly
  • Form submits successfully with valid email
  • Tested on mobile devices (pending)

Screenshots

Contact Form Validation

Issue Reference

This resolves #42

Additional Notes

The validation runs on both client-side (JavaScript) and will need server-side validation added in a future PR.


README.md Outdated
@@ -1,4 +1,4 @@
# GitHub Training Manual
# GitHub Training Manual-new branch
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant