简体   繁体   中英

Why is this custom form in WordPress not directing to the specified action?

When submitting the following custom form in WordPress, the system sends to index.php instead of the php page specified in action. Why is this happening and how can it be resolved?

Code:

<form action="<?php bloginfo('template_url'); ?>/signincode.php" method="POST" id="form2">

Are you using a paren and child theme? Instead of bloginfo('template_url') try

<?php echo get_template_directory_uri(); ?>

http://codex.wordpress.org/Function_Reference/get_template_directory_uri

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM