I'm trying to pass some data through a hidden input field. I want every part to be wrapped by an anchor tag that links to the correct page. But when I send it the hidden values are displayed probably because sending an anchor tag through a value field is not allowed. How can I do this?
Code:
foreach($offertecr as $offerte1){
if($offerte1['id'] != ''){
$message .= '<a href="#">'.$offerte1['title'].'</a><br>';
}
}
<input type="hidden" class="form-control-products" name="products" id="products" value="'.$message.'">
This results in the following:
I probably have to use javascript for this?