so.. I'm facing a problem with dynamic form/$_POST... I need to echo the image i selected via radio button in the if(isset($_POST['Submit_bc3']))... But it's not working, I don't get it.. How can i make this problem go away? Code:
<?php
$image_url = $user['image_location'];
$directory2 = "../../../login_/assets/playercards/";
$images2 = glob($directory2 . "*.jpg");
if (isset($_POST['Submit_bc3'])) {
echo $image2;
}else{
foreach($images2 as $image2)
{
echo '<img src="'.$image2.'" border="0" height="81px" width="156px" />';
echo "<input type='Radio' name='".$image2."' value=''></input>";
}
}
?>
<button type="submit" class="button" name="Submit_bc3" data-bind="vortexExternalLinkAction: ''">_LETS_GO</button>
$image2?