How to clear form, after submit, but after data passed?

you can redirect the user to the same page after if passes the validation

header(location:http://www.yourdomain.com/form_page.php);
exit;

You can use javascript to clear the form values, but that will not clear the $_POST data.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.