Code:$extraclass=($_POST['optn2']>0 ? hiddenPic: '');
There is a space. It would end up looking like this:Quote:
Isn't this resulting in prodoptionoptn2class because of the .
or am I not following this?
The way that works is the prodoption class loads first, and the hiddenPic class loads second. hiddenPic would have preference.Code:<span class="prodoption hiddenPic">
This is similar to your #1 problemQuote:
I thought it was going to be something like:
... code ....
but this doesn't work! LOL
optn2 is a code, like 415. $optionshtml appears to be the dynamic html it is creating and then returns to the calling routine at the end. Why would you do such a comparison? Besides, $thestyle is what? Nothing.