everyone replace
stderr("Error", "missing form data.");
with
show_error_msg("Error", "Missing form data.", 1);