I have form data submitted via AJAX; I'd like to display the information on the same page as the form once the data is inserted into the target table. I thought of using javascript to check if the insert was successful and then display the content via:
The display() method retrieves the inserted data and displays it.
Does my idea/code make sense? Suggestions and feedback are appreciated. Thanks.
Code:
document.getElementById("displayData").innerHTML = 'echo "formData->display();"';
Does my idea/code make sense? Suggestions and feedback are appreciated. Thanks.
Comment