A form on the company site that at present relies on a triple-dependent drop-down, javascript-driven selection. Quite neat, but not accessibility-friendly. So I am switching to a 3-stage process:
Stage 1 a simple html form which triggers a php form file- say page1.php which offers the next choices, which in turn triggers a second file - say page2.php - which finds out a further choice so that an output can be derived to make the desired MySQL query .
Problem is the query requires the named selections from each stage in the process, something like:
$query = "SELECT * FROM $produce$type$variant";
In the javascript form, all names were shot off at one go. At the moment I am suffering a brain-block - how can I preserve the selection names made at the early stages to feed into the MySQL selection combination?