bgan10
04-11-2011, 09:23 PM
1) Script Title: Required field(s) validation
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm
3) Describe problem: I want to run this validation on one of my registration sites. The problem comes up because the Form is generated through PHP. So when I click to register on a product the field name is made up by combining field ID and product ID. So the Field name could be "Players_name11" for one form and then "Players_name14" for another product.
In my case the Field ID will ways stay the same, it's the product ID that will change for each form. So is there a way to pull that product ID into the var fieldRequired = Array("First_name"); portion of the script? So that it would automatically add in the product ID of the current product.
Hopefully it's possible and someone can help. Thank you very much for your time.
Regards,
Brett
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/requiredcheck.htm
3) Describe problem: I want to run this validation on one of my registration sites. The problem comes up because the Form is generated through PHP. So when I click to register on a product the field name is made up by combining field ID and product ID. So the Field name could be "Players_name11" for one form and then "Players_name14" for another product.
In my case the Field ID will ways stay the same, it's the product ID that will change for each form. So is there a way to pull that product ID into the var fieldRequired = Array("First_name"); portion of the script? So that it would automatically add in the product ID of the current product.
Hopefully it's possible and someone can help. Thank you very much for your time.
Regards,
Brett