Results 1 to 5 of 5

Thread: conflicting Text Characters html and php

  1. #1
    anthon
    Guest


    Default conflicting Text Characters html and php

    I hope someone can help here. I remember reading some where about certain Text Characters have to be changed in php.
    I have implanted a section of text ( html ) and had no problems.
    Adding to the text the "alt" tags for my images I recieved an error message afterwards.
    here is part of the text
    "
    define('TEXT_MAIN','<BODY BGCOLOR=#008080 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
    <!-- ImageReady Slices (volle blad1.jpg) -->
    <TABLE WIDTH=370 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD>
    <A HREF="http://j.com/shop/index.php/cPath/35" TARGET="_self">
    <IMG SRC="images/volle-blad1_01.gif" WIDTH=90 HEIGHT=109 ALT="antenne,sirio antenne,president antenne,solarcon,wilson,wilson 1000 trunk lip,k40,k30 magneet antenne,lemm at 1063 antenne,at 550 winchester."></TD>
    <TD>
    <A HREF="http://j.com/shop/index.php/cPath/32" TARGET="_self">
    <IMG SRC="images/volle-blad1_02.gif" WIDTH=90 HEIGHT=109 ALT="cb,cb's,president,cb alan,cb premier,cb 2010,cb major,harry,herbert,lincoln,wilson,george,J.F.K."> </TD>
    <TD>
    <A HREF="http://j.com/shop/index.php/cPath/42" TARGET="_self">
    <IMG SRC="images/volle-blad1_03.gif" WIDTH=90 HEIGHT=109 ALT="mist lampen,dag lamp 24 volt,breedte palen,opstapring,achteruit rij camera,verstralers,12 of 24 volt,air duster,7 aderig kabel,lucht spiraal."></TD>
    <TD>

    It was only after I added the alt tags that I recived the errors, so I think it has to do with conflicting Characters from html to php.
    Was it comma's or slashes that have to change?
    I hope you can tell me which Characters I can not use in php?
    I hope you don't mind me removing the correct url. Last time I had the forum questions showing up in google when I did a search for the site. I would rather wait till the site is finished before it shows up.
    ( the site name is joost. if you care to look and see if you notice the problem. )
    Thanks for your help, I have lerned a lot from this site the past two months,
    anthon

  2. #2
    neil
    Guest


    Default

    Coding your images in that way will cause problems when you switch to https - the browser sees them as insecure items.

    If all images are referenced in the following way, there should be no issues - if images are in the images directory.


    <?php
    echo tep_image(DIR_WS_IMAGES . 'my_image.gif', 'my ALT text', '100', '150');
    ?>




    All images which are also hyperlinks should be referenced in the following way


    <?php
    echo '<a href="' . tep_href_link('your_directory/your_page.php') . '">' . tep_image(DIR_WS_IMAGES . your_image.gif) . '</a>';
    ?>

  3. #3
    anthon
    Guest


    Default found the problem

    Thanks for your advice. My site is already secured and I so far have no problems with my images and https://
    The problem I had I did find the solution to. It was in the word "cb's "
    forot to place the slash \ before the ' in cb. Now everything is working fine.
    thanks again,
    anthon
    I will change the codes soon, just happy I got the site showing again. Sorry but I had to lock the site until it is finished( in a few days ) believe it or not orders were all ready coming in ad we weren't ready for them yet!

  4. #4
    neil
    Guest


    Default

    Anthon,
    You might want to check your site from another machine - a friends or a library - & see if they get the message in https: - Displaying secure & non secure items. That usually happens when the images are coded
    <IMG SRC="images.........

  5. #5
    anthon
    Guest


    Default

    I'll do that, and let you know what happens . Did you get the warning?thanks,
    anthon





    I did look at the income site before the store and got the message,you're right. But if I go or even logg in dirrect to the shop,I don't have those problems.
    I'll go check why this is happening. I was sure the images were secured as well.
    The front site is in html and the images are in the dir. So I'll give it a try and see if it works for my front site as wel.

    The front site is normally secure, you enter with http, it is only when you go to the shop to buy that it changes in https://with out any conficts.
    anthony

Similar Threads

  1. Admin orders - Display more characters in Model# field??
    By JonCloud420 in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-19-2006, 08:06 PM
  2. Text Greeting, Text Main switch
    By rashunda in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 08-02-2005, 10:00 PM
  3. HTML Emails being sent as plain text or with source showing
    By malcol27 in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 04-25-2005, 10:31 PM
  4. Trim the last 3 characters from a string?
    By seank123 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 09-06-2004, 05:14 AM
  5. HTML?
    By West in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 05-05-2003, 03:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •