Title: Creating a custom PHP form
Last modified: August 3, 2023

---

# Creating a custom PHP form

 *  Resolved [thisdudeoverthere](https://wordpress.org/support/users/thisdudeoverthere/)
 * (@thisdudeoverthere)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/creating-a-custom-php-form/)
 * Hello everyone,
 * I want to create a custom html/php form, but I’m fairly new to WordPress. If 
   I put the html code of the form in a page with the HTML bloc code, where do I
   put the PHP code? I should also point out that I don’t want to use any plugins.
 * Thank you in advance for your reply.
    -  This topic was modified 2 years, 10 months ago by [thisdudeoverthere](https://wordpress.org/support/users/thisdudeoverthere/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [corrinarusso](https://wordpress.org/support/users/corrinarusso/)
 * (@corrinarusso)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/creating-a-custom-php-form/#post-16945061)
 * Are you inserting the entries into the database?
 * What are you planning to do onSubmit?
 * Why no plugins?
 * You could upload your php process file to the public html path, and then call
   that from the action on your form. Make sure the file is in your child theme.
 * You could build the process file as a template, and call that on your POST action.
   And / or add an action in the functions file of your child theme to process like
   this:
 * [https://developer.wordpress.org/reference/functions/add_action/](https://developer.wordpress.org/reference/functions/add_action/)
 * It’s a lot of effort to re-invent the wheel.
 *  Thread Starter [thisdudeoverthere](https://wordpress.org/support/users/thisdudeoverthere/)
 * (@thisdudeoverthere)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/creating-a-custom-php-form/#post-16945154)
 * > Are you inserting the entries into the database?
   > What are you planning to do onSubmit?
 * No, this form will send an email containing the information entered by the user.
 * > You could upload your php process file to the public html path, and then call
   > that from the action on your form. Make sure the file is in your child theme.
   > You could build the process file as a template, and call that on your POST 
   > action. And / or add an action in the functions file of your child theme to
   > process like this
 * Ok thank you.
 *  [ravindra107](https://wordpress.org/support/users/ravindra107/)
 * (@ravindra107)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/creating-a-custom-php-form/#post-16989260)
 * Hi [@thisdudeoverthere](https://wordpress.org/support/users/thisdudeoverthere/)
 * You can try contact form 7 plugin. No need any code. 
   You can just put the field
   into the field section.[https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)
   You can create custom shortcode by php into functions.php and call to any where.
 * Also I can help with custom code.
   Thanks.
    -  This reply was modified 2 years, 10 months ago by [ravindra107](https://wordpress.org/support/users/ravindra107/).
    -  This reply was modified 2 years, 10 months ago by [ravindra107](https://wordpress.org/support/users/ravindra107/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Creating a custom PHP form’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 3 participants
 * Last reply from: [ravindra107](https://wordpress.org/support/users/ravindra107/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/creating-a-custom-php-form/#post-16989260)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
