Tag Info

New answers tagged

0

Currently you have: #fscf_form3 div { margin-bottom: 6px; } If you increase it let's say to 11 you can see that the box goes to the right and properly aligns. Basically using the proper selectors you need to increase either the margin-top of the div or the margin-bottom of the div above it.


0

Use the following code: <form action="action_page.php" method="post"> First name:<br> <input type="text" name="firstname" value=""> <br> Last name:<br> <input type="text" name="lastname" value=""> <br> <input type="submit" value="Submit"> </form> and in file "action_page.php" Use the following code: ...


0

I think it should be $_REQUEST['lastname']; and you can check it like: echo $_REQUEST['lastname'];


0

You can in the action_page.php use the $_POST['lastname'].


0

I just solved this problem, as I was facing the same issue. What is happening when page loads (according to your code): it "gets" the options, then it saves new options. Hence the reason behind option getting updated on page after manual refresh. global $slides; // Add Menu Link add_action( 'admin_menu', 'slider_menu_options' ); function ...


0

Doing forms with separate PHP files isn't exactly the WordPress way. I'm fully aware that this isn't an answer to your concrete question, but below is an minimal example on how to do it differently - maybe in the future at least. You need to fill the gaps in the code to make this work. If finished upload the plug-in to wp-content/plugins/ and activate it. To ...


0

See if either of these plugins helps you do that: Custom Field Template or Mandatory Fields. If not, it might require changes to a theme's functions.php. Hopefully, you don't have to change anything in the core WordPress files - that can be quite risky.


0

I was missing quotes around my hidden attribute in my html form. The correct syntax is echo "<input name='mygroup' type='hidden' value=".$_POST['groupname'].">";


0

Rather that entering form element into the page contents editor in wordpress, make a separate template and load it through "Page Attribute". Then in form action, place below: action="<?php echo home_url('/page-name'); ?>" Let me know if any problems.


0

You are right the action part is the directory to the execution script file. You can not use the static directory path like that, it should be used with get_home_path(); like $path = get_home_path(); then action = '<?php echo $path."wp-includes/tests-form.php" ?>'; More: https://codex.wordpress.org/Function_Reference/get_home_path


0

name is a WordPress query var, by submitting a form with that var set, you are changing the main query. All form elements should always be prefixed with something unique to prevent clashes like this.


-1

use action="#" or action="<?php echo($_SERVER["PHP_SELF"]);?>" to redirect to same page


0

Not 100 % positive but my understanding is that a Nonce expire as soon as you use it. It can only be used for one transaction. So it seems to be logic that it expire after the first call. You should probably return a new one with the response of your first validated request and replace it. Hope this helps!


0

I will say, I don't exactly understand your words "when a front-end sets a date"... I'm assuming wp-admin setup. Go find a post expiration plugin. There seem to be more than a couple of these out there. The plugin I've used ws "Post Expirator" Awesome tool. You can create a start posting and stop posting date when the post is created. I used it on a ...


0

Checkout Deletion I guess you are using Woocommerce even though you did not mention it. I didn't understand why you want to delete the checkout page, but to do so, just go to Pages under the WordPress admin dashboard, and delete the checkout page. Contact Form Installation To add a contact form to your WordPress site, just install the Contact Form 7 ...



Top 50 recent answers are included