I have spent several hours looking for a solution but so far have not come up with one.

I know there is a way to generate meta tags dynamically with php (most often title, description, keywords, etc)
but is there a way to generate a robots noindex tag?

I have a php page that dynamically generates other pages and i want it to pass the noindex tag to all the pages it generates.
I still want the links to be followed, but i dont want the pages themselves indexed.

is this possible?