Skip to main content
6 events
when toggle format what by license comment
Dec 8, 2017 at 1:33 comment added JGallardo I believe you but not sure what you are suggesting as an alternative
Dec 8, 2017 at 1:21 comment added Tom J Nowell Also note that submitting a form or making a request directly to a PHP file inside a WordPress theme is super, super bad for security, and makes your code very easy to break and very fragile. WP should handle all requests
Dec 8, 2017 at 1:20 comment added Tom J Nowell @JGallardo that's standard PHP, you use an if statement combined with the empty or isset functions, e.g. if ( !empty( $_POST['name'] ) ) {
Dec 8, 2017 at 1:19 comment added JGallardo ok good tip with the relative URL. had to adjust to something like <form action="<?php echo get_home_url(); ?>/wp-content/themes/themename/_contactform.php" method="post" name='submitform'>
Dec 8, 2017 at 1:12 comment added JGallardo How would the latter be done?
Dec 8, 2017 at 1:10 history answered Tom J Nowell CC BY-SA 3.0