Jump to content

wicksworks

New Members
  • Posts

    3
  • Joined

  • Last visited

wicksworks's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. My website has many products with multiple selections that need to have required fields that are validated before sending to the shopping cart. Some pages have one product, while other pages have two or more products. If you are interested in providing a quote for this project, please contact me: sheri [at] wicksworks [dot] com. Thank you.
  2. I have read the documentation and clearly still do not understand it. Hence, back to the top of the "help" loop. :-)
  3. Am I asking too much? My intention is not to take advantage of anyone's expertise but to gain enough understanding to continue experimenting with the script. The call to the php script is before the form that asks for all the selections and eventually sends the product to the shopping cart. Toward the beginning of the script is this code: //Setup Validations $validator = new FormValidator(); $validator->addValidation("outside-color","req","Please select outside color"); At the point where the customer is asked to make a selection for outside color is this: <select size="1" name="product1[outside-color]"> <option value="dontselect=select outside color">select outside color:</option> <option value="outside color-White">White</option> <option value="outside color-Ivory">Ivory</option> </select> The product is sent to the cart without validating. Where have I gone astray? Thanks in advance!
  4. Disclaimer: This is my first attempt at doing anything with php, which might be overkill for what's required. Many of the pages of our website have one or more products with multiple selections (drop-down lists). Quite a few orders come in without a selection for one of the critical choices, which necessitates contacting the customer and waiting for a reply. A script which validates required fields could make things run much more smoothly for everyone. I've downloaded such a script and attempted to validate just one list (outside color) but have been unable to get the validation to work. Any guidance will be much appreciated. The files in question are attached for convenience. formvalidator.php 111-php-test.html
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.