Forum Moderators: coopster

Message Too Old, No Replies

html inside PHP messed up

         

Lorel

8:31 pm on Oct 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I'm not a php scripter but having to set up a template for a shopping cart written in php. I've been working on this for days and can't find the problem.

The template I set up works perfect on the website but not on the cart (it is a two column layout with the left column floating to the left then the content on the right which is not floated. Then the footer below those.

Everything is fine except the footer is riding up about 4 inches below the bottom and thus overlapping the left menu. I have a tag for Clearboth at the bottom of the content just before the footer info.

I can't post the code here and remove all telltale info or the template will collapse.

I've made sure the divs are all closed. Can someone tell me what to look for, or would someone be willing to look at this online?

I've looked at this so long I'm getting crosseyed.

TheAlbinoEthiopian

11:35 pm on Oct 1, 2008 (gmt 0)

10+ Year Member



Have you made sure all of your quotes are escaped? If you echo something like

<div class="test">

you need put a backslash in front of the quotes like

echo("<div class=\"test\">");

g1smd

11:42 pm on Oct 1, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I would run it through the W3C HTML validator to rule out a silly typo somewhere - one that you will never spot just by staring at code.

penders

7:06 am on Oct 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Do you have any unencoded HTML special characters (<, > etc.) in your cart's DB that is perhaps corrupting your HTML (template) page when it's inserted? But, as g1smd suggests, running your output page (not just the template) through a validator should catch that one.

Lorel

5:31 pm on Oct 3, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I have validated the output page. There is JS code that doesn't validate and other code that I can't control but it isn't anything that should affect the display.

Thanks for trying to help.

daveginorge

10:38 am on Oct 4, 2008 (gmt 0)

10+ Year Member



Hi Lorel

I would be happy to help by viewing the code online.

I know the "tired eyes" syndrome only to have someone point out the problem in a minute or two.

Dave

Lorel

4:24 pm on Oct 6, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks for everyone trying to help. I have someone working on it now.