2 added 18 characters in body
source | link

I am trying to create a custom form in wordpress. 

Step 1 of the form is html code that collects data and sends it to a php file through the post method, then writes it to the MySQL database and creates Step 2 of the form using php code. 

My problem is that I want to include the default wordpress header and footer in Step 2 of the form that wordpress uses in Step 1. Is there a way to do this by including the code of header.phpheader.php and footer.phpfooter.php in my php script? I

I have tried putting this at the top of the script: ?php get_header(); ? ,

<?php get_header(); ?>

but it gives me an undefined function error.

Thanks!

I am trying to create a custom form in wordpress. Step 1 of the form is html code that collects data and sends it to a php file through the post method, then writes it to the MySQL database and creates Step 2 of the form using php code. My problem is that I want to include the default wordpress header and footer in Step 2 of the form that wordpress uses in Step 1. Is there a way to do this by including the code of header.php and footer.php in my php script? I have tried putting this at the top of the script: ?php get_header(); ? , but it gives me an undefined function error.

Thanks!

I am trying to create a custom form in wordpress. 

Step 1 of the form is html code that collects data and sends it to a php file through the post method, then writes it to the MySQL database and creates Step 2 of the form using php code. 

My problem is that I want to include the default wordpress header and footer in Step 2 of the form that wordpress uses in Step 1. Is there a way to do this by including the code of header.php and footer.php in my php script?

I have tried putting this at the top of the script:

<?php get_header(); ?>

but it gives me an undefined function error.

Thanks!

1
source | link

Creating a wordpress form with php script and default header

I am trying to create a custom form in wordpress. Step 1 of the form is html code that collects data and sends it to a php file through the post method, then writes it to the MySQL database and creates Step 2 of the form using php code. My problem is that I want to include the default wordpress header and footer in Step 2 of the form that wordpress uses in Step 1. Is there a way to do this by including the code of header.php and footer.php in my php script? I have tried putting this at the top of the script: ?php get_header(); ? , but it gives me an undefined function error.

Thanks!