Welcome to the forums.
One way to do this is with a bit of CSS and JavaScript. Place the image and two forms into separate divs. Use CSS (display: none) to hide the form divs. With jQuery, an excellent JavaScript library that makes JavaScript much easier, add click listeners to your links. Upon link click, set CSS display: none on the image, and CSS display: block on the first form. Do this on the other link.