Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can someone help with translating PHP


agiftcodotcom

Recommended Posts

Let me see if I can explain this right.

 

I need this code...

' . tep_image_button('navi_account.gif', IMAGE_BUTTON_ACCOUNT) . '

 

To be used as the button (instead of "Account" text") for this code...

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerbutton">Account</a>

 

I already have a code that does this for my "home" link...

<?php echo '<a href="index.php">' . tep_image_button('navi_home.gif', IMAGE_BUTTON_INDEX) . '</a>'; ?>

 

But I see that it starts with: <?php echo '<a href=" :and the other starts with: <a href="<?php...

 

I know nothing about HTML, so I'm not sure why one href is outside and the other is inside. But, basically, I need the top button code to be able to work with the second link code. If possible :blink:

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Link to comment
Share on other sites

They are basically the same. The first just puts the entire anchor in a string, the second only inserts what is needed into the anchor.

 

I belive this should do what you want:

 

<a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerbutton"><?php tep_image_button('navi_account.gif', IMAGE_BUTTON_ACCOUNT); ?></a>

I'd rather be flying!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...