How do you mean by working? If you mean that the thank you page is being displayed, then yes this is correct as that's what you've specified as the action for the form - however, you're not actually doing anything with the data you've submitted, it's just being posted to that page.
You need to post it to the contactengine.php script and then modify that script to then redirect to your thank you page.
Weird - did you get the tests I did? Only thing I can think of is maybe Wordpress tries to process things like that or maybe a plugin that does the same?
Did you by chance add the Thanks page as a custom page in the Wordpress admin? I'm not positive on the inner workings of Wordpress but it seems to me the server (Wordpress) might be replacing the location of the php file with an existing page that uses that template page.
It's not Javascript because the form action sources stay the same even if it's disabled and still exhibit the peculiar behavior Bob talks about. Chris's offline demo doesn't show this happening (with MAMP enabled) so it must be something one of your plugins is doing or Wordpress is doing it for you to attempt to mask the PHP location. As long as your original code says the right thing then I wouldn't worry about it.
Ok my real problem is that I actually have another contact form with the exact same code at the very top if you click "Attic"
It sends me this in email... Name:Name: Phone:Phone: Email:Email: Notice it is putting the questions twice. It doesnt do that on the form in the sidebar.
These emails are coming from homerunlogo@p3nlh126.shr.prod.phx3.secureserver.net if that helps. Hosted with godaddy.
Well if you're just submitting either one without entering any text of course it will do that because the PHP script is already inserting "Name:, Phone:," ect. which is the same default text you have in the boxes.
Nice looking site by the way, although I noticed in Safari and Firefox the sliding element for the Attic form doesn't come down far enough and cuts off half the submit button.
Got it here. http://css-tricks.com/examples/NiceSimpleContactForm/
You need to post it to the contactengine.php script and then modify that script to then redirect to your thank you page.
Hope that helps.
Ben
You can view it in the sidebar here if you like.
http://homerunlogo.com/logo/
The action is run after submit is clicked, thus the users are taken to the thank you page after submit has been clicked.
Name:left side
Phone:3423453
Email:;lkjl;kj
It came from homerunlogo@p3nlh126.shr.prod.phx3.secureserver.net
Hosted with godaddy.
Edit: this is weird, when I inspect it with Firebug the form action="http://homerunlogo.com/thanks/"
However, when looking at the source directly (CTRL+U) the form action="http://homerunlogo.com/wp-content/themes/Homerum/contactengine.php"
Why is that different?
It's not Javascript because the form action sources stay the same even if it's disabled and still exhibit the peculiar behavior Bob talks about. Chris's offline demo doesn't show this happening (with MAMP enabled) so it must be something one of your plugins is doing or Wordpress is doing it for you to attempt to mask the PHP location. As long as your original code says the right thing then I wouldn't worry about it.
It sends me this in email...
Name:Name:
Phone:Phone:
Email:Email:
Notice it is putting the questions twice. It doesnt do that on the form in the sidebar.
These emails are coming from homerunlogo@p3nlh126.shr.prod.phx3.secureserver.net if that helps.
Hosted with godaddy.
Nice looking site by the way, although I noticed in Safari and Firefox the sliding element for the Attic form doesn't come down far enough and cuts off half the submit button.