Graybeard
Well-Known Member
Embed country flag images over CDN (HTTP API)
Country flag images for embedding on your website or for programmatically download to keep flags in your projects up-to-date.
flagpedia.net
PHP:
//URL/file.php?&f=us
<?php $flag = $_GET['f'];?>
<div id="footer">
<?php echo '<div style="text-align: center; font-size: 1.2em; font-weight: bold">Wagers Accepted From: <br><img src="https://flagcdn.com/56x42/'. $flag .'.webp"> <br>'; ?>
Payouts via:<br>Credit Cards—Crypto—Moneygram</div>
</div>
Payouts via:<br>Credit Cards—Crypto—Moneygram</div>
</div>
My use was GEO IP and dynamically rendering their county's flag.
Last edited: