I am writing a PHP script now, but I really need to attach one thing to it.
The page has a table consisting of two columns, the data in these columns are the same, the user clicks on a cell in the first column, then on a cell in the second column. The script takes data from these cells and forms a link to which it sends the user.
A working example of this can be seen on the monitoring sites of exchangers, for example, bestchange.ru, a table with currencies on the right.
The question is how to implement it? can eat somewhere instructions, examples? I tried to search for myself, but did not find anything, I’m probably forming the wrong requests ...
Thank you, well, judging by the example I figured out a little, I do not need to process courses and the like.
I need more simple. There is a table:
<tr id="ti1"> <td id="dlc1" id="dlc1"><a href="#">WMZ</a></td> <td id="drc1" id="dlc1"><a href="#">WMZ</a></td> </tr> <tr id="ti2"> <td class="lc" id="dlc2"><a href="#">WMR</a></td> <td class="rc" id="drc2"><a href="#">WMR</a></td> </tr> Clicking on one cell, clicking on the second cell, the script takes for example the id parameter from these cells, and forms the link http: //sayt.ru/ dlc1 -to-dlc2 .html and sends the user to this link (redirection).
Well, or how to do differently?
In each cell I insert a hidden checkbox or radio with the values I need when I click on the second cell, the script sends the value from the first column and the second PHP script, well, then I will process these values myself ....
How to send this data?