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

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -