I have entered a form element into the page contents editor in wordpress.
form action="/home4/stevekeo/public_html/wp-includes/testforms.php" method="post"> ...
I want to use the selected value, and have created a php script in the /home4/stevekeo/public_html/wp-includes folder to access the user choice.
<?php $team = $_POST['teamname']; echo "Team selected was ". $team. ".<br />"; ?>
As I understand it, the PHP script named in the 'action' part of the form element is executed when the submit button is clicked. This doesn't appear to happen. Any help would be great, as I'm a relative WP/PHP novice. sorry - first attempt was mangled