'hidden', "name"=>'image_id', "value"=>$image_id]), INPUT(["type"=>'submit', "value"=>'Delete', "onclick"=>'return confirm("Delete the image?");']), ); } /** * Display link to replace the image */ public function get_replace_html(int $image_id): string { return (string)SHM_SIMPLE_FORM( make_link("image/replace"), INPUT(["type"=>'hidden', "name"=>'image_id', "value"=>$image_id]), INPUT(["type"=>'submit', "value"=>'Replace']), ); } }