I THINK there’s a very simple solution for my questions; I just haven’t learned how to do it yet. Let me break it into three steps:
The key code is <?php echo $unit ?>
Put the entire head section in a PHP include page.
Another example…<?php $seg = '../../../'; $unit = 'weight'; include ($seg."a1/inc/head.php") ?>
But I want to convert them to just ONE page that works with all four units. I think I need to simply make links that somehow toggle the $unit value between length, area, weight and volume.
Tentatively, I’d like it to look like this…
Choose a Unit:
Length | Area | Weight | Volume
(Length, Area, Weight and Volume would be linked.)
At any rate, can someone tell me how to make toggle switches - or some function - that will get the job done?