Posted: Thu Oct 30, 2008 3:51 pm how to ignore blank fields?
i am trying to setup a series of html forms (not php) that act as a catalogue, so i have a list of products with different options they can choose for each one...
however i've been searching the internet and all i can find is how to make alerts to notify users of blank fields - problem is that my forms are submitting ALL fields whether they've been used or not...
so in my case, if a client only chooses two items (and fills out the form information for that item) the email I receive still shows all the fields for every item...
example of the email i receive:
DC16-OPTION1 = on
DC16-COLOURS =
DC16-QUANTITY = 1
DC27-COLOURS =
DC27-QUANTITY =
DC28-OPTION3 = on
DC28-COLOURS = green
DC28-QUANTITY = 2
DC2-COLOURS =
DC2-QUANTITY =
DC22-OPTION2 = on
DC22-OPTION3 = on
DC22-COLOURS = blue, green, red
DC22-QUANTITY = 5
as you can see it sends all the fields even though there is nothing written in them... how do you make it stop doing this? as all the fields are NOT required I'd rather they not show up if they aren't being used!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum