Registration form labels – add asterisk

The * appears under the field because the field is inside the label. There doesn’t appear to be any useful filters for this, but you could use one of the hooks to inject some JS on the page that adds the *: required = jQuery( “<span>*</span>” ); required.css(“color”, “red”); jQuery(‘label br’).before( required ); Note: if … Read more

Submitting post to database then redirecting to paypal

Not sure how I ran into this question one year later, but since it is unanswered… Instead of self-submitting the form and then redirecting to Paypal, you can instead have the paypal url as your form’s action, but use Ajax to save the form data before the form is submitted to Paypal. You can also … Read more

show image in mail contact form 7 [closed]

As per my comments, it seems you are trying to attach images to emails rather than ‘show’ them. Since you have [file* image filetypes:jpg|png|gif] what you need to do is put [image] in the ‘File Attachments’ box in the Contact Form 7 settings. This is from the Contact Form 7 File Uploading and Attachment doc.

How to submit data from HTML form?

I agree with other answers that most of the time it is better to use a plugin to handle form submissions. However, there are exceptions to this rule. If you find yourself in a situation where you need to handle the form submissions yourself, you can submit data to admin-post.php. Here is how to set … Read more

Creating a contact form without a plugin [closed]

This is my very simple implementation of contact form: class WPSE_299521_Form { /** * Class constructor */ public function __construct() { $this->define_hooks(); } public function controller() { if( isset( $_POST[‘submit’] ) ) { // Submit button $full_name = filter_input( INPUT_POST, ‘full_name’, FILTER_SANITIZE_STRING ); $email = filter_input( INPUT_POST, ’email’, FILTER_SANITIZE_STRING | FILTER_SANITIZE_EMAIL ); $color = filter_input( … Read more

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