osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

wacky tag mangling behavior

This is a discussion on wacky tag mangling behavior within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; i'm trying to integrate OSCommerce into my existing PHP app, whereby sharing of session variables is required. right or wrong, ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-18-2004, 02:25 PM
Lurker
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sdavid14
Default wacky tag mangling behavior

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-18-2004, 02:41 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

I asked this question on the oscommerce forums a while ago, I had table tags that weren't cl;osing and it was doing my head in, especially as my local server was fine but the remote was playing up.

Anyway I think it's a bug in PHP itself, see here:

http://www.oscommerce.com/community/bugs,1242

I have sometimes found that it is possible to stop it simplay by changing the formatting of your code, eg splitting <a href="#" onclick='javascript:addList();'>add list</a> onto two lines

<a href="#" onclick='javascript:addList();'>add
list</a>

that may or may not work. Upgrading to PHP 4.3 would fix it.

jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-18-2004, 04:37 PM
Lurker
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
sdavid14
Default

that's the one alright.

splitting onto two lines didn't work, however, the suggested work-around of adding the following line to application_top.php appears to have done the trick:

ini_set ( 'session.use_trans_sid', 0);

thanks again, my friend. it is much appreciated.

steve
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-18-2004, 04:51 PM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

you're welcome
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Dynamic InfoBoxes Behavior kopoba11 osCMax v2 Installation issues 3 09-24-2006 03:33 AM


All times are GMT -8. The time now is 10:25 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax