Tell me this: What webserver engine is going to process this mixed mess?<BR><BR>Remember, ASP and PHP are both just "plugins" to a given web server.<BR><BR>So to make that work, you'd have to <BR>(a) find a webserver that supports both PHP and ASP.<BR>(b) find a webserver that, when it sees some weirdo extension on the filename ("xyz.aphspp"???) will send the page to *both* plugins to be processed<BR>(c) find a webserver that will somehow figure out how to combine the output of the two plugins.<BR><BR>Could it be done? SURE! Write your own webserver. <BR><BR>
I've used php and asp to communicate with each other on the same webserver (i like php's port handling capabilities) but i havent tried an include with them. form data is fine though. I dont know if its possible, but if you are running on iis go ahead and try <!--#include virtual="/(pathnametofile)"--> im curious to see if it would allow it.. unless that was what you tried and sparked the question in the first place. heh. *shrug*, if that doesnt work. maybe try frames. or an iframe?
...would work fine!<BR><BR>But the other won't.<BR><BR>Whichever name you give to the file (xyz.asp or xyz.php), *THAT* is the plugin to IIS that will receive the *ENTIRE* page, after the server-side include is performed. So PHP would be trying to digest VBScript syntax. Or vice versa. Good luck.<BR><BR>