Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

Help with isset($_POST['action']) && $_POST['action'] === 'edit'

$
0
0

I have an editor instance where I want to update another table on edit.

All was working ok, until I added validation to some of my editor fields.

If everything validates ok, no problem, but the $_POST['action'] === 'edit' block of code will run regardless of whether my editor validates, throwing an error

How can I check to see if the editor input validates before running the edit block ?


Viewing all articles
Browse latest Browse all 3740