Я хочу, чтобы при выборе Google текст ссылки был google.com, а при выборе Facebook текст ссылки facebook.com
это фото объясняет
<?php
if (!empty($apps)) {
foreach ($apps as $cat) {
?>
<div class="col-3" style="text-align: left;">
<input type="radio" name="site_app_cat" value="<?= $cat->cat_id; ?>" onclick="show_temp(this.value);">
<span><?= $cat->cat_name; ?></span>
<img src="<?= base_url() ?>/asset/other/caticons/<?= $cat->icon_name ?>" class="cticon_footer" style="margin-top: 0px;">
</div>
<?php
}
} else { }
?>
<br>
<b><?= form_error('site_app_cat', '<p style="color: #ff4040;font-style: italic;">', '</p>'); ?></b>
</div>
<div class="row" style="margin-top: 20px;text-align: left;">
<h7 style="color: green">site link <h7>
<span style="font-size: 12px;color: red;"></span>
</h7>
</div>
<div class="row">
<input type="text" name="site_link" class="form-control1" id="focusedinput" placeholder="enter site link" value="<?= set_value('site_link'); ?>" style="width: 100%;margin-top: 5px;padding: 5px;border:1px solid #ccc;border-radius: 10px;">
<b><?= form_error('site_link', '<p style="color: #ff4040;font-style: italic;">', '</p>'); ?></h7>
</div>
<?