juhinagpure / Eduford-university

76 stars 173 forks source link

Fix Syntax Errors and Improve Email Handling in Contact Form Script #342

Open iamabhishek2828 opened 1 month ago

iamabhishek2828 commented 1 month ago

The current PHP script for handling contact form submissions has several issues that need to be addressed to ensure proper functionality, security, and user experience. Problems Identified: Syntax Errors: Misplaced semicolon in the assignment of $visitor_email. Typo in the email headers ("form" should be "From"). Security Concerns: Lack of validation and sanitization for user inputs. Potential vulnerability to header injection attacks via the mail function. Functional Issues: $email_from contains a URL instead of an email address. Incorrect email headers leading to improper email formatting. Need for proper redirection after form submission.

iamabhishek2828 commented 1 month ago

I would like to work on this issue. Please assign it to me.