Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

HTML alt wont work ? but works ok in notepad?


Djswift

Recommended Posts

Ive taken part of the coding from /languages/english/create_account.php

 

define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);

define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "nn");

define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "nn");

define('EMAIL_GREET_NONE', 'Dear %s' . "nn");

define('EMAIL_WELCOME', 'We welcome you to

<a href="https://www.swiftphones.co.uk" target="_blank">

<img src="http://www.swiftphones.co.uk/swiftphones.gif"

alt="Please Visit www.swiftphones.co.uk">

</a>'."nn");

 

 

When someone signs up to my website, it sends an email displaying my logo and stuff like that, but it has alt=please visit ww.swiftphones.co.uk next to the logo which i didnt want.

 

The coding works well in notepad as i use that sometimes for HTML

 

but i know i must be going wrong somewhere ? Please help me.

 

DJ

Link to comment
Share on other sites

no one please?

 

this will enable me to advance on in what im trying to do, and get my business a little quicker online

 

Any help appreciated of why the alt thing does not work

 

Im sure its a simple query:S

 

DJ

Link to comment
Share on other sites

Try this:

define('EMAIL_WELCOME', 'We welcome you to <a href="https://www.swiftphones.co.uk" target="_blank"><img src="http://www.swiftphones.co.uk/swiftphones.gif" alt="Please Visit www.swiftphones.co.uk"></a>'."nn");

Let me know how you go,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Hello there Tony

 

I copied and pasted the coding into the create_account.php and it does not show the logo, and it goes on about looking in my f:/ directory for some file.!

 

I have tried to change it a little and play around with it, and got the logo, but i still get it saying alt="please visit swiftphones.co.uk" next to the logo which is annnoying.

 

:(

 

DJ

Link to comment
Share on other sites

DJ,

Basically, what I was trying to do was esacpe the " character by putting an in front of it. What I think could be happening is that PHP is seeing the " before the ALT tag as the end of the define statement.

 

Trying playing around with that a little... try this page as a start if you need to know more about it:

http://www.phpbuilder.com/annotate/message...php3?id=1006274

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...