Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Password Protect "Click To Enlarge"


geoffreywalton

Recommended Posts

Hi

 

I am looking to password protect the click to enlarge link on the product info page

 

Currently the link is

 

<script language="javascript"><!--
document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>

 

I would like to put a password input field on the screen and if the data entered == the value in p.image_password display the popup window showing the image in $product_info['products_image_permitted']

 

Get as far as

 

 <form name="Form1" method="post" action="??????????????" onSubmit="return submitme()">
Enter Password to see the image: <input type="password"  id="mypassword" /><br /><br />
<input type="submit" name="Button1" value="Login" />
</form>

 

and then lose it.

 

G

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...