<a onclick="fotosec(this)" rel="BURADABIRINCIFOTONUNINSTAGRAMLINKI"><img src="xxx"></a>
<a onclick="fotosec(this)" rel="BURADAİKİNCİFOTONUNINSTAGRAMLINKI"><img src="xxx"></a>

<input id="like_musteri_link" type="hidden" value="" required>


<script type="text/javascript">
    function fotosec(e){
        var photo_link = e.getAttribute("rel");
        document.getElementById('like_musteri_link').value = photo_link;
    };
</script>