On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > Hey Everyone, > > Is it possible to have variables affect the database results of an > included php page in a shtml page? Let me try and clear that up... > > index.shtml?order=a <---- that does not resort the database results > index.php?order=a <----- That DOES resort the database results...
To give a bit more information on the very extensions may help to explain the problem, J. .php = PHP Hypertext Preprocessor (a recursive algorithm since PHP3) .shtml = SSI HTML (Server-Side Includes/HyperText Markup Language) SHTML is only used to include a file at the time the content is being served by the host. Conversely, PHP processes the .php script at the time of request, but without any of the query string being passed. Consider it as if the .shtml file is a browser on a remote computer. Whatever is inside the <!--#include virtual="(.*)"--> tag will be processed exactly like that, but you can't pass any info to that. If that just confused you even more, blame it on my lack of coffee this morning.... -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list.... 50% off for life on web hosting plans $10/mo. or more at http://www.pilotpig.net/. Use the coupon code phpgeneralaug07 Register domains for about $0.01 more than what it costs me at http://domains.pilotpig.net/. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php