I have a form where i need to put 2 values that will be selected from a shadowbox modal window.
the problem im having is it will be a list of probably HUNDREDS of values listed and paginated.
how can i return 2 values with a single click without using forms?
parent page:
<input name="id" type="hidden" value="" />
<input name="data" type="text" readonly="true" />
Shadowbox printout:
<?php
$total = count($_parameters);
for($i = 0; $i < $total;$i++) {
echo $_parameters[$i] ['id'] . ", " . $_parameters[$i] ['data'] . "<br />";
}
the shadowbox printout indeed needs an href of sorts, i know, where i can have the 2 values, one for the id and another for the data.
the id value have to populate the hidden field, the data value the textbox
i've been banging my head over this for over 4 hours with no luck
based on http://shadowbox-js.com/forum.html#nabble-td4019963|a4806279 it can be done with forms, but that method (sorry im not a javascript expert) my thoughts go to have a function for each result, with a form for each result, which seems ridiculously unreasonable.
sorry maybe my question is really noobish, or maybe foolish, but all help is appreciated.