I've beaten by head against the wall for a while and can't figure this out, so I'd appreciate a pointer or two ..
Attempting to create a template page for my theme that puts a "contact us" form on the page. Seems pretty straightforward; I've done lots of these outside of wordpress, but haven't done too much wordpress coding, so I'm just missing something.
My form tag looks like this:
<form action="<?= $myurl ?>" method="post" name="myForm" id="myForm">
I've tried all kinds of things for $myurl .. from index.php to index.php?p=626 to .. ? When the user submits the form they go to the "single post" template with a comment "Sorry, no posts matched your criteria".
I had it work a few times, but was never able to reliably repeat it.
I'm trying to do this because I haven't been able to find any plugins that do what I want .. I'm developing a school site, so I have 20 teachers. I want the user who comes through a "contact us" form to be able to select one of the 20 teachers to contact. I want someone who is looking at a teacher's page, and clicks "Contact this teacher" to go to the same form and have pre-selected the teacher to contact.
I would provide a link to the site, but I'm changing it constantly, so whatever I say here won't be what you are looking at.
Any hints on how to get a form to go through to a specific page? This has to be easy to do, I'm just blocking out on seeing how to do it.