The list goes on and on. I actually have a value for about 1000 models, not just the make.
Anyway to echo that my value is selected, in every single option I paste in the following:
<?php if ($_GET['s'] == '74') { echo 'selected'; } ?>
Then I change the number value in there for each one.
This is going to take awhile since I have roughly 1000 models to enter. I’ve done about 30 and I’m sick of it already. Is there a way to elegantly do this so I’m not changing the number value every time? I wouldn’t mind if all I had to paste was a single line of code into every option. It’s much worse to have to go back and change the value for each and every one of them…
Thanks, I really like your thinking on this. The only thing is, each model has a specific number to it, so I can’t just run through each sequentially… Would there be a way to add the specific number within the array somehow? Hmmm well now you have me thinking thanks for the suggestion.