Thank you for a fully comprehensive replay... I'm going to hopefully answer this based on my understanding
"For each drop down, what is the source of the data? Is it coming from a database?"
Each drop down used (4) is integrated within the HTML, so no database is used. I know from research, this is a bad method, but the Excel converter, does what it does
<select name="p1B3" id="p1B3" size="1" onchange="recalc_onclick('p1B3')" tabindex="2"
class='ee104' style=' width:100% '>
<option value="Vinyl" selected>Vinyl</option>
<option value="R Vinyl" >R Vinyl</option>
<option value="PVC" >PVC</option>
</select>
The value element is replaced by converter. But retains numeric value public side
from the script above I used value by ID to create a Div statement (?)
var sMaterial = document.getElementById("p1B3");
selectedValue = sMaterial.value;
document.querySelector("#sMaterial").outerHTML = selectedValue;
And this in turn becomes <div id="sMaterial"></div>
At this point, the 1 page requirement has been maintained. Because the original site is not a CMS site, no SQL. So what ever goes up must be literally Cut'n'past
The step from here is the reason for coming here -
I am aware that there are many process of how to do.. BUT my background in Excel is not web programming
I have been told by my husband that if it can be done from a single page position, it would need the HTMLDivElement - an error I keep getting. To be a modified Java, to pass the script over to PHP as a variable. Knowing this to be the wrong syntax...
$Material = "<script>document.getElementById("p1B3")</script>";
<?php echo $Material;?>
... or for PHP to look up the ID from HTML
Yes, in this case it's a single off the cuff e-comm addition to a web page. Ebay has a cut'n'past 'buy now' button the web owners want to use this, the idea is to graft what I create into the API and pass what ever over to their server to process
I provide a TXT file that is in fact HTML. That shows on a button press the drop downs work, and calculations work and the right selection and values are correct.
I have yet to work out how to reset the button. but the elements shown, would be whats passed over to a pay now button
sheet.txt