July 22nd, 2013, 05:18 PM
ASP and iframe with PHP
OK, I received this code from a tech co. who is assisting my client. Basically, I have and ASP web site for the client. In a page on this web site there is an iframe. Within the "src" attribute for the iframe there is a request for a PHP variable. The site within the iframe is PHP.
I think there is a syntax error as my color code highlighting in BBedit is not matching up.
Here is the code::
does anyone see the error? Or will this code not work in an ASP page?
<iframe frameborder="0" scrolling="no" height="1100" width="760" overflow-x="hidden" overflow-y="scroll" src="http://sms.luceosolutions.com/recruit/advert_details.php?id="<?php echo
$_REQUEST["id"]; ?>&idpartenaire=<?php echo $_REQUEST["partner_id"];" ?>></iframe>
July 22nd, 2013, 05:33 PM
It won't work embedded in an asp page. The web server only uses one kind of server scripting per page, so since the asp interpreter is being used, it won't understand php tags. This is true even if you have php installed on the web server.
I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
July 22nd, 2013, 06:49 PM
Thanks Doug G
Thanks for the response . . . I was worried t was with my syntax, but your response just confirms my initial worries.