Title: Extend single.php
Last modified: August 19, 2016

---

# Extend single.php

 *  [yoha](https://wordpress.org/support/users/yoha/)
 * (@yoha)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/extend-singlephp/)
 * Hi all!
    I’m newbie in PHP but… I want to extend my current theme and add submit
   button in single.php file and do it like this ….. // I add this code into single.
   php <form method=”post” action=”my.php”> <input type=”submit” ….. ….. The only
   problem is that code in my.php can’t get access to WordPress environment so I
   can’t get data from wbdb and so on… More over I can’t find any help how to bound
   click action to php function. Thank for advice.

The topic ‘Extend single.php’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [yoha](https://wordpress.org/support/users/yoha/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/extend-singlephp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
