i'm trying to integrate OSCommerce into my existing PHP app, whereby sharing of session variables is required. right or wrong, i've chosen to accomplish this by including "application_top.php" and "application_bottom.php" in all my pages (even non-oscommerce ones) and using the tep_ functions to manage all variable registration.
my problem is: when i include application_top.php in my code, i'm experiencing a problem where certain HTML tags are getting mangled.
for example, what should look like this
---snip---
<a href="#" onclick='javascript:addList();'>add list</a>
| <a href="#" onclick="javascript:removeList();">remove list</a>
---snip---
comes out like this
---snip---
<a href="#" onclick='javascript:addList();'>add list</ | <a href="#" onclick="javascript:removeList();">remove list</a>
---snip---
...obviously distorting what the broser renders. when i simply remove this line:
require('includes/application_top.php');
the problem goes away. i've even removed all calls to any tep_xxxx functions from this page, and the problem persists.
questions:
1. any idea what could possibly cause this behavior?
2. if not, any other suggestions on how i can share session variables between oscommerce pages and non-oscommerce pages?
Thanks
Steve





LinkBack URL
About LinkBacks






Bookmarks