Using hidden field to pass data

chriso0258 14 Dec, 2016
Hello,
I have a db reader set up in the onLoad action. Here's what the array looks like.
[attachment=0]prodarray.jpg[/attachment]

I use data from this array to dynamically load a drop down selection which will pass the productASIN upon submit. However, I also want to pass the productName on submit but can't seem to get the data.
[attachment=1]prodname.jpg[/attachment]

I've tried a variety of productName = $_GET[...] statements but none work. Can you tell me what I'm doing wrong?

Thanks for your help,
Chris
Max_admin 14 Dec, 2016
Hi Chris,

The dropdown passes the "option" value, you can set it to any field your like, if you want to pass both the name and the number then you will need to concatenate them before you send them to the dropdown.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 14 Dec, 2016
Hi Chris,

Max's solution is probably the simplest - there's another one in this FAQ or you could look up the title (and any other related info) using the ASIN number after the form submits.

Bob
This topic is locked and no more replies can be posted.