I have two page (page1.php and page2.php) that need to put the javascript coding. On the page1.php, there have two images link to page2.php.
This is the code for page1.php:
<a href="page2.php"><img src="btn1.png" id="img1"></a>
<a href="page2.php"><img src="btn2.png" id="img2"></a>
This is code for page2.php:
<input id="t_c" type="checkbox" name="t_c" value="1"/>
<input type="image" value="continue" src="images/btn_cont.png"/>
If user click image1, it will go to page2.php. then if user didn't click the checkbox, there will display the error message.
If user click image2, it will go to page2.php. then if user didn't click the checkbox, there will display different error message.