Welcome Guest, Not a member yet? Register   Sign In
Forms – Dynamic input names
#3

[eluser]obiron2[/eluser]
In the example you have given, every field would be a product code so it doesn't matter.

This is a bit fiddly but is probably the best way.

In your code that generates the form, include hidden fields with name = Pcode and value = your product code.

When you submit the form, I think (and I'm sure someone will correct me here) $_POST will effectively make an array of the PCode names and you can iterate through the array and get the value of $_POST['Pcode'][x]

and then search for a $_POST['{$Foundvalue}']

You will need to check the syntax though.


Messages In This Thread
Forms – Dynamic input names - by El Forum - 08-08-2007, 03:17 PM
Forms – Dynamic input names - by El Forum - 08-09-2007, 01:52 AM
Forms – Dynamic input names - by El Forum - 08-09-2007, 07:10 AM
Forms – Dynamic input names - by El Forum - 08-09-2007, 07:29 AM
Forms – Dynamic input names - by El Forum - 08-09-2007, 08:19 AM
Forms – Dynamic input names - by El Forum - 08-09-2007, 08:39 AM
Forms – Dynamic input names - by El Forum - 08-09-2007, 08:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB