title: execute PHP form on Wordpress page
body: <p>please excuse my English - I have created a _POST form  where the user can fill in two numerical fields, which are then multiplied and divided by some constants to output the result when the form is submitted. I am executing the form on the same page using
      ($_SERVER["PHP_SELF"]); 
  The code is very basic and works on the servers where I tested it (can copy and paste if required).</p>
  
  <p>Now I'd like to use this small "calculator" on a Wordpress page (I am running Avada theme) but I'm at a complete loss as to how to substitute ($_SERVER["PHP_SELF"]).</p>
  
  <p>I have tried: 
  - copying and pasting the whole snippet as it is in the Code Block of fusion builder > I get an error
  - storing the variables and calculations in a separate .php file to be called - hardcoded or using  bloginfo() funtion 
  - creating a new template page with the code embedded</p>
  
  <p>...but when I submit the form I am only redirected to the additional php file or to the homepage. </p>
  
  <p>Am I trying to do something completely wrong? </p>
  
  <p>Any help is greatly appreciated as I really don't understand how this could work...</p>
  
  <p>Many thanks!</p>