Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where in the code are the image functions?


hubcat

Recommended Posts

On the login.php page, there is this line:

 

<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>

 

This same line is on other pages with different buttons referenced, but not all the buttons do the same thing. Where do I find the code that actually defines what happens when this button is clicked?

 

Thank you!!

Link to comment
Share on other sites

Those functions are located in /includes/functions/html_output.php.

 

As the name of the function already implies, it button submits a form. And the action to be taken is usually defined with the function tep_draw_form(). Other than that, you can pass something like this.submit() as a parameter to the image button.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...