Title: Using a PHP Form in WordPress Page
Last modified: August 19, 2016

---

# Using a PHP Form in WordPress Page

 *  [mikem1986](https://wordpress.org/support/users/mikem1986/)
 * (@mikem1986)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/)
 * Hi guys
 * Im currently making a taxi website for a client and in my wordpress page i have
   coded a php form, the form works fine until when you come to submit it i get 
   a 404 error? I know this is because the page title is coming before the action
   attribute as such….
 * > <form style=”text-align: left;” action=”pagebooking.php” method=”post”>
 * this is at the top of the form, and for the otherhalf of the form i have
 * > <form method=”post” action=”pagebooking.php”>
 * but when i click the submit button on the page it goes to
 * make-a-booking/pagebooking.php and thus returns a 404?
 * Ive tried making a pagebooking.php and adding the code to the page but that didnt
   work and ive also tried adding the code at the bottom of the page but that also
   didnt work? Anyone else have any ideas?

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

 *  Thread Starter [mikem1986](https://wordpress.org/support/users/mikem1986/)
 * (@mikem1986)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128339)
 * anyone?
 *  [S.K](https://wordpress.org/support/users/kichu/)
 * (@kichu)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128342)
 * There are very good and reliable contact form plugins available, which take care
   of all such aspects and are also highly customizable.
 * You may like to use them.
 * (Perhaps you know about them but still want to hand-code one yourself!)
 * S.K
 *  Thread Starter [mikem1986](https://wordpress.org/support/users/mikem1986/)
 * (@mikem1986)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128495)
 * Hi Kichu
 * Yes i do know about them but theyre not intergrateable with a commerce solution
   i need to put it…
 * Basically i want the user to fill in the form, then this then sends to the email
   and then they also have the option of paying a deposit when using the booking
   form
 *  [ryans149](https://wordpress.org/support/users/ryans149/)
 * (@ryans149)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128508)
 * create a custom page and link it to navigation bar.
 *  [lares](https://wordpress.org/support/users/lares/)
 * (@lares)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128724)
 * When I used a [php form](http://phpforms.net/tutorial/html-basics/php-forms.html)
   I only copied and pasted generated code to my web pages on wordpress site

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

The topic ‘Using a PHP Form in WordPress Page’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [lares](https://wordpress.org/support/users/lares/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/using-a-php-form-in-wordpress-page/#post-1128724)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
