Greetings. I’m not much of a WP hacker but I’m proficient with PHP.
I have a calculator of sorts that I’d like to put into one of my blog posts. It relies on an HTML form and some PHP, and is working just fine outside of the blog. Ideally I would like the form action to point to the same url it resides at (the post in this case) so the results may be displayed there along with all of the input values. Normally this is easy enough but I’m a little lost on how to do it inside a WP post. From the reading I have done it sounds like I need the form action to point to my php processing file, and from there point back to the WP post at the end of my script… however if I do this I’ll have to use session variables to pass all of variables back, and there are quite a few. I’d rather not use a session if there’s another way.
Is there another way?
(here is a link to the broken calculator on my blog if it makes matters any clearer)
- The topic ‘Form in a post?’ is closed to new replies.