Hi,

I'm currently coding a dynamic drop down menu that auto populates a second drop down menu. I'm doing this using some Ajax, with the first drop down making a call to a separate PHP file and pulling back the content to populate the second drop down.

It's actually working pretty well, apart from the fact that I need the separate PHP file to ONLY contain some basic PHP elements. I have managed to create a page using the standard ZenCart method, but this results in a whole template page being pulled back by Ajax.

Is there a way to create a separate single PHP file somewhere that can be called, that doesn't get populated with other template info (headers, footers etc)?

Not sure if this makes sense or not.

I'm basically building on from this chaps code, which might explain it a little better: roshanbh.com.np/2007/12/change-dropdown-list-options-values-from-database-with-ajax-and-php.html

Been trying all afternoon and getting nowhere fast.

Cheers.