I have a table and use the following to create a button inside one of the cells:
print("<td> <input type=\"submit\" name=\"toedit\" value=\"Submit\" >
<form action=\"Manage_Customer_Information_refined_list.php\" method=\"post\">
<input type=\"hidden\" value=\"Submit\" name =\"submit_button\" >
</form>
</td>");
When i go to call upon the button (press it) using
if(print_r($_POST["\"submit_button\""]))
{
print "button pressed";
}
It says
undefined index "submit_button"
Please Help :/
print_ris a function with highly mixed return values, it can return a bool, a string, an int, a float, god knows what, it depends on the context. However, to keep this simple,print_rdoesn't belong in thatif. It should be something like thisif(isset($_POST['submit_button']))