Greetings for the day.
I am in the middle of a coupon based website development. As part of it, once the user clicks on the get coupon button, I need to display to the user the coupon code as well as redirect them to the merchant website. To achieve this I am fetching all the details from the database and storing them in php variables, then displaying it in the web page.
echo ' <div class="col-sm-3 feature" > <div class="panel" id="bar"> <div id="propost"> <a href="', $LINK, '"> <img src="', $IMG, '" class="img-responsive" alt=""/></a> <div class="special-info grid_1 simpleCart_shelfItem"> <h5>', $POSTDESC, '</h5> <div id="btnstyle"> </div> <a href="', $LINK, '" target="_blank" class="', $btn, '" onclick="window.open(', $ccodelink, ');">', $text, '</a> </div> </div> </div><!-- end panel --> </div><!-- end feature -->';
Everything is working as expected apart from the multiple links which I mentioned in the anchor tag. How do I do this?