toolcrazy Posted December 20, 2002 Share Posted December 20, 2002 define('TEXT_INFORMATION', 'Put here your Shipping & Returns information.'); Example: If I want to add a link like www.***.com that my customer could click on. Where it says 'Put here your shipping info' Along with other text. When I tried it, I got both my site address and the www.***.com link crammed together. I am newbie to PHP but I am learning fast. So go easy on me :D Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
wizardsandwars Posted December 20, 2002 Share Posted December 20, 2002 define('TEXT_INFORMATION', '<a href="www.whatever.com"> <u>Link</u></a>Put here your Shipping & Returns information.'); ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
toolcrazy Posted December 20, 2002 Author Share Posted December 20, 2002 Ok, so the <u></u> is the secret. I tried a standard html link <a href=""></a> and it jammed my site address with it. I'll give it a try. Thanks Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
wizardsandwars Posted December 20, 2002 Share Posted December 20, 2002 Actually, no. The <u></u> just underlines it. The key is to make sure you escape the double quotes with a backslash ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
toolcrazy Posted December 20, 2002 Author Share Posted December 20, 2002 Duhh!!! I know that. I have forgoten so much html. This project is forcing me to relearn a lot. I've been using wysiwyg editors so much. Ive become soft. But, this is good for me. Make my mind work. Thanks for the tip. and the help. Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
wizardsandwars Posted December 20, 2002 Share Posted December 20, 2002 Don't be too hard on youself. It not actually the HTML that need the double quotes escaped. It's the PHP. PHP doesn't like embedded double quotes unless they are escaped. You think that's bad. Wait til you try to put a query sting inside a variable inside a php function that call the database, assign that to another variable, and drop that into some html embedded in php. That my friend, is why programmers make the big bucks (yeah, right :roll: ) Good luck! ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
dreamscape Posted December 20, 2002 Share Posted December 20, 2002 if you are linking to an outside site, you need the http:// in front of the www or otherwise if you link like this: <a href="www.whatever.com">link</a> it will just tack it onto your current site, because it doesn't know its a new site: link would be: http://www.yoursite.com/www.whatever.com specify an http:// in the href: <a href="http://www.whatever.com">link</a> and it will link to a new site and the link is now: http://www.whatever.com The only thing necessary for evil to flourish is for good men to do nothing - Edmund Burke Link to comment Share on other sites More sharing options...
toolcrazy Posted December 20, 2002 Author Share Posted December 20, 2002 Dreamscape: I actualy did do that. But if you leave a regular link without a escape on the double quotes as wizardandwars said, this is where I made my mistake. I was aware of the escape, I figured that one out earlier, but forgot all about it when I was doing the later paragraph. I thank you both for your help. The people on this board is always so friendly. Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted December 21, 2002 Author Share Posted December 21, 2002 Sorry guys: It didn't work. I still get both URLs when I click on the link. example: http://www.*****.com/http://www.****.com I hate this, something so simple and I can't figure it out. This is what I am doing. In language/english/special_thanks.php a page I created for a thank you for some donations to our cause. define('TEXT_INFORMATION', 'Put here your Shipping & Returns information <a href="http://www.****.com"><u>this is my link</u></a>'); But, this doesn't work. I am not getting anywhere. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted December 21, 2002 Author Share Posted December 21, 2002 I have figured out that OSC is adding the http://www.***.com automaticly to all links. So when you add a link to outside the system it does the double link as explained above. but if you do a /default.php it works just fine. Anyone know how to get around this. Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted December 21, 2002 Author Share Posted December 21, 2002 I figured it out. Duuuh, I was making it harder than it needed to be. Thanks for all the help. Steve Steve ------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.