PHP Form Inside WordPress
-
I’d like to use a dropdown combobox with a Submit button (a form) to reload a page passing the selected item from the combobox. Then the page would use custom PHP code to output the result.
Example: User selects a US State from the dropdown box, presses Submit, the page reloads and executes the PHP code with retrieves all the content for the selected US State.
In regular PHP I would simply create an html form with <form method=”post” action=”mypage.php”> but I can’t get it to work in WP. Is there a special way to do old fashioned HTML forms in WP? No matter what I put into action=””, it always seeks a non-existent page.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘PHP Form Inside WordPress’ is closed to new replies.