KiranAminPanjwani / MedStats

A Personal Health Journal Website
https://medstats-health-journal.netlify.app/
MIT License
30 stars 53 forks source link

Contact Page Form Submission Error and No Input Validation #146

Open hariraghav10 opened 1 year ago

hariraghav10 commented 1 year ago

🎇 Description

Issue Description:

The contact page is currently under development, but there is a critical bug that needs immediate attention. The form on the contact page is being submitted to an endpoint with the value "#", which causes a significant issue. When users attempt to submit the form, it results in a broken site experience and leads to a "No Webpage Found" error.

Steps to Reproduce:

  1. Navigate to the contact page on the website.
  2. Fill out the contact form with valid data.
  3. Click on the submit button.

Expected Behavior:

Upon clicking the submit button, the form data should be processed or at least there should be no error encountered. Users should not see a broken page or a "No Webpage Found" error. Whenever the form fields are empty, user should not be able to submit

Actual Behavior:

After clicking the submit button, the site encounters an error due to the form being submitted to an invalid endpoint ("#"). This results in a broken user experience, making it impossible for users to contact us through the website.

🖼 Screenshots

Submitting the form with or without user inputs:

MedStat-before-0

MedStat-before-1