Test Task
Test Task
The company needs a simple contact form on their WordPress website. This form
should allow users to submit their name, email address, and message, and send it to
the admin email address.
Requirements:
1. Develop a Custom Contact Form: The candidate should create a simple
contact form using a combination of HTML, CSS, jQuery, AJAX, and PHP for
validation.
2. Form Elements:
o The form should include the following fields:
Name: Input field for user name. (required field)
Email: Input field for user email address. (required field) (validate
email address)
Subject: Email subject (required)
Message: Text area field for the user's message. (optional)
Submit Button: A button to submit the contact form.
Response: Form submission response for success/failure.
3. Functionality:
o Upon successful validation, use PHP to process the form data:
Protect the user input to prevent security vulnerabilities.
Send an email containing the user's name, email, subject and
message to a designated admin email address on the website.
o Implement a success message to be displayed after a successful form
submission.
o Use AJAX to submit the form data without refreshing the page.
4. Styling the Contact Form:
o Use CSS to style the contact form elements and layout.
o Ensure the form is visually appealing, responsive and user-friendly.
Important Note:
Create a plugin for this task along with the plugin’s admin page where you’ll
mention the short code of this contact form.
The admin user should be able to use that short-code anywhere in the website
for displaying the contact form.
Once the task is completed, send us the plugin in zip format and make sure the
plugin is ready to use, once installed on website.
You have to deliver this task within 48 hours of receiving.