Complex Timesheet Form

I would suggest looking at the gravity forms plugin. It will allow you to have a pdf emailed or stored in the database.

how to insert textbox value in existing database table in wordpress?

Though you haven’t mention the process and WP tables to insert textbox values in existing WP table. Either you can used option table or postmeta table for your purpose. For option: WordPress provides two specification API functions for writing data to the database. One comes in the form of adding information, one comes in the … Read more

How to validate my form

$table = wp_save; This is setting $table to a PHP constant wp_save. If I had to guess I’d say you don’t actually have a constant by that name, and just meant to set the table name to wp_save. To do that you need to put the table name between quotes, so that it’s a String: … Read more

Radio&Checkbox buttons Contact form 7 not clickable

Please use below html and shortcode in the contact form .you missed the checkbox and radio button values <div class=”custom-control custom-radio”> [radio customRadio id:customRadio1 class:custom-control-input “value4″] <label class=”custom-control-label” for=”customRadio1″>Something</label> </div> <div class=”custom-control custom-radio”> [radio customRadio id:customRadio2 class:custom-control-input “value5″] <label class=”custom-control-label” for=”customRadio2″>Something</label> </div> <div class=”custom-control custom-checkbox”> [checkbox checkbox1 id:customCheck1 class:custom-control-input “Value1″] <label class=”custom-control-label” for=”customCheck1″>Something</label> </div> <div … Read more

form action wordpress and php

If you’re using WordPress, you shouldn’t send POST requests directly to current URL. There is an API to process such requests. So how should that be done? First of all, you should send request to admin-ajax.php: So instead of this: <from action=”<?php get_permalink( $post->ID ) ?>” method=”POST” id=””> You should have this (also, there was … Read more

How to check form input against PHP variable?

Your problem is this bit: $input = $vCode That is not comparing the variables. It’s assigning the value of $vCode to $input. If you want to compare the two values, you need to use == or ===. $input == $vCode It still wouldn’t work though, because you haven’t actually defined $input. You’re only defining it … Read more

Stop SPAM from custom form

I’ve been studying (and blocking) automated form spam for years. Most advice relates to hidden fields, CSS tricks, ‘stupid’ questions (“what is 1+3”), and others. And the reason that those tricks (and others) don’t work with automated spam bots is that they don’t ‘see’ your form, they just post to it. They scrape the form, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)