[Solved] how to echo an onlick function in php [closed]


Try this

foreach($people as $row){
    echo "<form action="https://stackoverflow.com/questions/23799703/.base_url()."some_controller/hideSingleApp_idx method=post>";     
    echo "<td>".$row->description."</td>";
    echo "<td><input type=image src="https://stackoverflow.com/questions/23799703/.base_url()."hidebutton_white.png height=17 width=17 onclick='return confirm(\"You sure nigga?\")'/><br></td></form>";

1

solved how to echo an onlick function in php [closed]