How to use method action in php?

leon

New member
I have calculator type script in a include php file. I'd like to be able to post the output in the header of another include file that would reload inside the containing root file.

At the moment it looks like this

method="post" action="<?php echo "$_SERVER[PHP_SELF]"; ?>"

Any ideas?
right, ah . I didn't mean in the head of another page.

So I have a web page has an include file in it which has a php script that lets the user type in a square footage of and area which then outputs a price.

I want onsubmit to show the price at the top of another include file which contains a contactform. This contact include file would replace the first include file to show on the same page.
Ok, I don't mind if the page reloads. Just so the price is shown above a contact form.

Page one - calculator script

Page two - result of calculator script above contact form.
 
Back
Top