Category : contact-form-7

I’m making a simple contact form that works but when I send it to my Gmail account it comes from [email protected] I want it to come from the user inputs email instead. <?php if(isset($_POST[‘submit’])) { $name = $_POST[‘name’]; $email = $_POST[’email’]; $phone = $_POST[‘phone’]; $message = $_POST[‘message’]; $mailTo = "[email protected]"; $headers = " From: " ..

Read more

I have a textfield in CF7 which I want to validate if the users input is 4 digits and 2 characters, like: 1234AB (with no spaces and with capital letters). This is what I have already, but it doesn’t work: function custom_postcode_validation_filter($result,$tag){ $name = $tag->name; if($name == ‘ba-postcode’){ $bapostcode = $_POST[‘ba-postcode’]; if($bapostcode != ”) { ..

Read more

Pass some WooCommerce product data to Contact Form 7 enquiry form above just "out of stock" form product data (product name and the variation attribute "Color") everything works. Thanks. but there is another form. The "all stock" product name and the variation attribute do not show "Color". [contact-form-7 id="12715" title="Soru Sor"] Can you prepare all ..

Read more