Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iamabhishek2828 opened this issue Jul 2, 2024 · 1 comment

Comments

@iamabhishek2828
Copy link

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
Copy link
Author

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

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

No branches or pull requests

1 participant