like i said, i don't know php or the totality of the code but if i understand it properly could you not expand the php to encompass the whole html line and use an if statement to decide whether or not the line should be there?Toby B. wrote: But like the $add_images, I need to have it work so that if there is no links to place there (such as front panel pinouts, etc.), it shows as or None...
so if there is nothing entered for front panel pinouts, that variable remains in it's initialized state($frontpanelpins = "unknown" or "null" or whatever). once you get to the point of whether or not to display the link, use if to check if $frontpanelpins has changed. if it has changed(hopefully to something useful and not just a " " space character) then you continue with your link code. if it remains the same or is blank then you just skip over the whole link section.
in a php source, does all explicitly written html get processed? when i mentioned expanding the php around the link i meant something like using php to write the whole link line. so instead of:
html + php: $variable :end php + html
php: insert html tag + $variable + html closing tag :end php
you could make it into a seperate function or module. at that point in the code, send the variable to the function, have the function receive it as a value or data only so it can work on it in it's own temporary variable. the if decision statement in the function will decide whether to write out the link or just skip it and throw control back to where it left off. this is assuming php has functions and modules and has differing ways of sending arguments to them.