Title: Using Form to Call PHP Script
Last modified: August 19, 2016

---

# Using Form to Call PHP Script

 *  [jbaldo](https://wordpress.org/support/users/jbaldo/)
 * (@jbaldo)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/using-form-to-call-php-script/)
 * Help!!!
 * I’ve been scouring this forum and Google for half a day and I give up!
 * I essentially want to have a contact form on a page and when you press “Submit”,
   to call a script.php somewhere. I do not want php code to execute when the page
   _loads_ (like an echo, ext) I want to use a form to post variables to a php script
   and then use mail().
 * Can anyone explain how to do this?????
    I’ve tried: Placing the code in the page
   template. Getting various plugins exec-php, ext.
 * It always says it cannot find the script.
 * All I want to do is run a mail script.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jbaldo](https://wordpress.org/support/users/jbaldo/)
 * (@jbaldo)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/using-form-to-call-php-script/#post-695240)
 * pleeeese

Viewing 1 replies (of 1 total)

The topic ‘Using Form to Call PHP Script’ is closed to new replies.

## Tags

 * [contact](https://wordpress.org/support/topic-tag/contact/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP script](https://wordpress.org/support/topic-tag/php-script/)
 * [script](https://wordpress.org/support/topic-tag/script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jbaldo](https://wordpress.org/support/users/jbaldo/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/using-form-to-call-php-script/#post-695240)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
