Title: PHP calculator
Last modified: August 20, 2016

---

# PHP calculator

 *  [allysont](https://wordpress.org/support/users/allysont/)
 * (@allysont)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-calculator/)
 * Hello,
 * I have a php code that queries a mysql database based on the inputs from a html
   form.
 * I’ve saved both .php and the .html form in the httpdocs directory, and the query
   works well.
 * How do I transfer the html and php codes into wordpress?
 * Here’s what I’ve done so far…
    1) Installed Exec-PHP and turned off the visual
   editor 2) created another page and pasted the php codes inside (permalink1) 3)
   created one page and pasted the html codes inside (permalink2) and changed the
   html code to <form method=”post” action=”permalink2.php”>
 * The html form look ok, when I clicked on the “calculate” button, it seems to 
   bring me to [http://domain.com/permalink2/permalink1.php](http://domain.com/permalink2/permalink1.php),
   while the php code is in [http://domain.com/permalink1.php](http://domain.com/permalink1.php).
 * Help!!!! Thank you…

Viewing 1 replies (of 1 total)

 *  Thread Starter [allysont](https://wordpress.org/support/users/allysont/)
 * (@allysont)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-calculator/#post-2233717)
 * Well I haven’t found an answer for this… but a quick workaround is to just install
   an IFrame plugin since the calculator is working from my rootdirectory.
 * I love WordPress!!! Drupal does not have miracle plugins like Iframe and it has
   been my constant headache for a non-geek like me. Thank god I’ve switched to 
   WordPress =)

Viewing 1 replies (of 1 total)

The topic ‘PHP calculator’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 1 participant
 * Last reply from: [allysont](https://wordpress.org/support/users/allysont/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/php-calculator/#post-2233717)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
