I have an array of texts which I have kept in an array. The array is linked to a button and when that button is pressed, I'd like to open all the links in different tabs.
e.g
if(isset($_POST["open links"]))
{
foreach($array as $item)
{
<a href="$item" target="_blank" ></a>
}
}
The links are saved on a text file from a previous form and each item in the array is just the URL. How would I go about doing this?