A helpful clue would be to look at the URL in the address bar of your 404 page. A reliable approach for form action in WP looks like the snippet below.
<form method="post" id="thisform" action="<?php bloginfo('url'); >/dbsearch/">
I would create your page in WP, ensure the page slug is ‘dbsearch’ as this determines your permalink (http://domain/dbsearch) and the template used. You can of course use any slug you like but match this to your form action. Rename your script ‘page_dbsearch.php’ to ‘page-dbsearch.php’. WP will pick this up as the page template for your results page.
All of your form data will be available in the $_POST array to write your DB query with.
Related Posts:
- 404 Error on form submission within custom post type
- Submiting custom form give error 404
- Custom post type single page returns 404 error
- Getting hierarchical custom post type permalinks to work just like pages
- Custom post type pagination 404 fix?
- Inconsistent temporary 404s on whole install | PHP error with post-template.php
- Custom post type 404s with rewriting even after resetting permalinks
- Custom Post Types 404 Issue
- Get post ID from wp_insert_post()
- Custom post type archive 404’s with paginate_links
- Pagination throws 404 error on custom taxonomy archive pages
- Create page to handle form submission
- 404 on child page when parent page slug is identical to custom post type
- Single custom post type page redirecting to 404 page
- Hierachical Custom post types permalinks not working
- How to disable a Custom Post Type Feed?
- How can i avoid the permalink start with ‘blog’ while using the custom post type?
- Child pages on hierarchical Custom Post Types 404s
- Custom Post Type Works but Still Shows “Page Not Found”
- WordPress custom post type category pagination 404 Error
- Pagination throws 404
- How to save contact form 7 data in Custom Post Types (CPT) [closed]
- How do I redirect all 404 errors of a specific post type to another URL?
- Removing CPT slug from URL results in 404 error for archive page
- WordPress monthly archive links result in 404
- Remove Slug from Custom Post Type results in 404
- How to remove CPT comment feed from head?
- Conditional two level dropdown filter for custom post type
- Dynamic dropdown custom post list based on dropdown selection
- Custom post type pagination 404
- Page not found for custom post type UI plugin and taxonomy
- How to solve this custom post type goes to 404 page?
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom rewrite to fetch feed data
- show custom value from frontend form in a post (custom post type)
- Custom WP_Query always respond with 200 status even when no entry
- page not found for single-type.php file
- Custom taxonomy page returns 404
- One Custom post type 404’s others don’t
- Custom taxonomy template list not working (404)
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- How to filter a custom post type by custom taxonomy without 404
- Custom Post 404
- Custom taxonomy template shows 404 Error
- Post type Permalink
- Custom post type categories gives 404 error
- How to selected value default in option list?
- Permalink Trouble with custom post types
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Permalinks not working (404) for the ‘item’ post type
- Safe to throw 404 error in request filter?
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- Submit Custom Postypes from frontend
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- Problem with custom loop navigation inside the blog page
- How to submit custom post type front end form when a user buy specific product
- How to upload two input files [closed]
- Change dynamically the dropdown list value
- Can’t Export Custom Post Types With Export Tool In A Custom Theme
- Custom post type single page 404
- Why it doesn’t create a custom post type after form submitting
- How to submit the date with ajax?
- Sudden 404 pages on product category archives
- Custom taxonomy returns 404 even with saving permalinks
- ‘Simple’ Reservation System
- Attend event form with ajax
- Show custom post status when logged out
- WordPress retrieving $post based on random key in $_POST
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- Custom post shows 404 after theme change
- How can I get custom post types to recognize pretty permalink variables?
- Guided post type create based on category tree
- Enabling hierarchical in a Custom Post Type gives error 404
- Standard Page Child of CPT Not Found (404)
- Custom Post Type Front Page Gives 404
- Show ajax form resuslts in page
- Published page but it is page not found
- Pagination for custom query returns 404
- Advanced search form with multiple custom fields
- New entries to custom post type produce 404 on single view
- Custom Post Type slug and WPML gets 404 error
- Add new custom post type screen (admin area) results into 404
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- pre_get_posts gives 404 error on Custom Post
- Custom 404 redirect for a luddite
- WP gives 404 error for custom post type with GET variable
- custom search form for custom post
- 404 error next-page [2] PageNavi custom type taxonomy
- Getting Custom post category from Form
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- Custom Post Type Rewrite – Page Not Found
- What am I doing wrong with my taxonomy?
- Understanding the workflow of form creation plugin
- Cannot use pages created on WP
- Front end page submission form does not attach custom post type
- How to create a petition like form based on custom post types?
- CPT unsaved draft gives error 404 – when Post Formats support enabled