Thanks guys, both of your examples work, but not how i intended for it to work.
See i have the Htm file that has a form on it. On the form are the 3 txtfields and the calculate button.
What i want to happen is that htm file is to show the results.
Your example sid, did what i was asking but it took me to the php page and then i was to calculate it there.
I was using an Include statement in the OnCLick event of the Calculate button. When i click this button i want the php page to do the work and output the result to the txtResult txtfield without taking me to a new page. What i mean is, its ok if the php page has to load to do its work but i want the results shown on the original Htm page not on a seperate php page.
Am i making any sense?π
I was told javascript would be the best way to do this... but i'm not doing it to be practocle i'm just trying to figure out how this whole Php thing works exactly.π
Thanks!!π π π