Welcome Guest, Not a member yet? Register   Sign In
Posting jquery cloned form fields.
#4

(08-09-2015, 07:58 PM)skribe Wrote: I am working on a project for a client who asked that I add a feature to a form allowing him to add (dynamically) extra fields for multiple phone numbers and/or email addresses.  So I simply set up a jquery script to clone the fields on clicking a button.  However, when I submit the form only the data in the original field is submitted, the cloned fields are not recognized or are being filtered, because they are not included at all in $_POST.  I thought that XSS was the culprit, but it is globally set to false.  What am I overlooking.  The form is not public facing and is locked behind authentication so XSS is not a concern.

1) make sure your new input elements is within the FORM tag
2) make sure your new input element's name attribute is unique
Reply


Messages In This Thread
Posting jquery cloned form fields. - by skribe - 08-09-2015, 07:58 PM
RE: Posting jquery cloned form fields. - by tony - 08-10-2015, 05:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB