php - action="" not working in WordPress -


i'm trying make custom contact form using custom page template in wordpress. when use

<?php echo $_server['php_self']; ?> 

it goes contact page index page. when leave action empty like

action=""

it gives me error. can give me insight on this? can post whole page if you'd like. read similar post didn't find solid answer. in advance.

use $_server['request_uri'] instead of php_self. wordpress rewrites it's index.php, need post current url , not index.php.


Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -