osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

CONTACT US FIELD VALIDATION v0.1

This is a discussion on CONTACT US FIELD VALIDATION v0.1 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; In contact_us.php, when contact us query form is submitted, there's no effective validation to check if necessary fields have been ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 11-28-2007, 09:40 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,098
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post CONTACT US FIELD VALIDATION v0.1

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...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
css and dhtml validation dilladog osCMax v2 Installation issues 0 09-03-2007 01:37 PM
Image Validation michael_s New osCommerce Contributions 0 06-21-2007 02:00 PM
Validation in admin chitta_rn osCMax v2 Customization/Mods 0 02-17-2006 06:17 AM
add a field to contact us page stevensdesign osCMax v1.7 General Mods Discussion 1 08-01-2005 04:37 AM
Email validation issue webguy262 osCommerce 2.2 Installation Help 0 06-24-2004 11:20 AM


All times are GMT -8. The time now is 12:22 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax