Replace following line -
<a href="profile-page.php?reg_id=<?php echo $f1; ?>" class="red-more" target="_blank" id="payment">View Full Profile</a>
with this one -
<a href="profile-page.php?reg_id=<?php echo $f1; ?>" onclick="return validateProfile('<?php echo $f1; ?>')" class="red-more" target="_blank" id="payment">View Full Profile</a>
Then add a JavaScript block as shown below -
function validateProfile(reg_id) {
var isValid = false;
return isValid;
}
Regards,
Niral Soni