Standalone PHP Files
The Solution
Form Handling
<input type="hidden" name="my_form" value="true" />$show_form = false;
if ( !empty( $_POST['my_form'] ) ) {
// handle the form
...
// if succesful
get_template_part( 'form', 'success' );
} else {
get_template_part( 'form', 'page1' );
}AJAX
Dynamic Stylesheet Generation
Last updated