In contact_us.php, when contact us query form is submitted, there's no effective validation to check if
necessary fields have been filled in.
Instead, only an "invalid email address error message" is displayed in the result with the caption
something like, "thank you, your query has been successfully submitted to the store owner". Most people
misunderstand this as their message having been delivered.
Actually, the store owner never gets the message if the email address is not inserted in the form while
submission.
This is somewhat confusing.
I was looking to alert the visitor in case of the incomplete form, BEFORE the query is submitted.
After constantly looking around, I couldn't find a contribution that would resolve this issue, so I quickly
"developed" my own.
All I did was to grab the form field validation javascript from www.dynamicdrive.com and altered a few
lines in the catalog/html_output.php file.
PLEASE NOTE: That the enclosed contact_us.php file is the same as the one in SUPER CONTACT US ENHANCEMENT.
This can be found here: http://addons.oscommerce.com/info/4029
This file is also included in the package so not to worry, I have only provided the information for
clarification.
A screenshot is included for demonstration prior to install.
More...





LinkBack URL
About LinkBacks









Bookmarks