-
Modal Form Submission
Unfortunately that tutorial doesnt include actually sending the form data to a recipient mail in the PHP. I've tried finding other AJAX Form tutorials but they either don't show you how to process the form data via PHP or dont include a modal. If anyone can point me in the right direction it would be appreciated.
-
Modal Form Submission
Thanks I thought Ajax may be the only way. I'll look into it although I'm not every familiar with it.
-
Modal Form Submission
Thats my point though, I don't want to redirect the user at all. I just want them to be able to press submit and then stay on the current page.
-
Modal Form Submission
Hi, I'm using materialize.css (http://materializecss.com/modals.html) to display a modal/pop-up Form on page load. I have the modal displaying fine and submitting data via PHP. However, I want the pop-up to just close after submit instead of the user being redirected to another page. I've tried having it redirect back to the current page but this re-opens the pop-up again. Below is my PHP: <?php $email_to = "mail@domain.co.uk"; $name = $_POST["name"]; $email_from = $_POST["email"]; $tel = $_POST["tel"]; $message = $_POST["message"]; $email_subject = "Feedback from website"; $headers = "From: " . $email_from . "\n"; $headers .= "Reply-To: " . $email_from . "\n"; $message = "Name: ". $name . "\r\nTel: " . $tel . "\r\nMessage: " . $message; ini_set("sendmail_from", $email_from); $sent = mail($email_to, $email_subject, $message, $headers, "-f" .$email_from); if ($sent) { header("Location: http://domain.co.uk/test.html"); } else { echo "There has been an error sending your comments. Please try later."; } ?> Any help greatly appreciated. Wasn't sure whether to post in this section or JS so please move if in the wrong place.
-
TSOHost - Absolutely Shocking (Almost as bad as Heart Internet)
But they dont support http/2 which means you'll get a slight performance hit on any sites you enable LE. The having to manually renew also doesnt sound good, I'm sure most LE integration on other hosts do this automatically.
-
TSOHost - Absolutely Shocking (Almost as bad as Heart Internet)
I am also considering moving some domains from TSO Host mainly due to poor performance especially with Wordpress sites. Had a chat with guru.co.uk and they seem really good and UK based. Does anyone have any experience with them?
-
Modify Contact Form 7 Submission Data
So far I’ve tried the following code but this changes the posted data to No when the checkbox is both checked or unchecked: // define the wpcf7_posted_data callback function action_wpcf7_posted_data( $array ) { $value = $array['further-marketing']; if( !empty( $value ) ){ $array['further-marketing'] = "No"; } return $array; }; // add the action add_action( 'wpcf7_posted_data', 'action_wpcf7_posted_data', 10, 1 ); Any help would be greatly appreciated.
-
Modify Contact Form 7 Submission Data
Would still really appreciate any help with this. Thanks.
-
Modify Contact Form 7 Submission Data
Hi, I'm using Contact Form 7 on a site and need to alter the checkbox submitted data. The checkbox has a label called 'Tick here if you dont want to receive further marketing', when this is checked the value sent in the admins notification email displays the checkbox label. So it looks like: Tick here if you dont want to receive further marketing: Tick here if you dont want to receive further marketing I want to alter it so when its checked the value posted is No. I believe I can use the following action hook to achieve this but I dont know how to check if the checkbox has been ticked within this function and modify its value. Any help much appreciated. // define the wpcf7_posted_data callback function action_wpcf7_posted_data( $array ) { // make action magic happen here... }; // add the action add_action( 'wpcf7_posted_data', 'action_wpcf7_posted_data', 10, 1 );
-
Google Fonts Issue
I think this is now fixed, it was just because I wasn't fully declaring the font-family, originally it was font-family: 'Open Sans' !important; its now font-family: 'Open Sans', sans-serif !important;
-
Google Fonts Issue
Thanks for this, it seems ridiculous that Apple would apply such a restriction on font variants. I know the theme loads several variants of Source San Pro its default font. But that still wouldnt explain why Open Sans is displaying but only on the home page.
-
Google Fonts Issue
Thanks, that confirms there is still an issue then.
-
Google Fonts Issue
Can anyone else with an Iphone confirm that Open Sans isnt displaying? - as I've had a response from theme tech. support along with screenshots showing the font IS displaying on Iphone 5s and Iphone 6, I'm now thinking it may be some kind of caching issue.
-
Google Fonts Issue
Just thought I'd mention the font displays fine on my android phone so its definitley an IOS/Safari issue and not a general 'Phone' device issue.
-
Google Fonts Issue
Unfortunately I dont have an Iphone of my own to try that (although hope to get one soon), I had to borrow my brothers Iphone 5c to confirm the issue. My business partner first noticed the issue with his Iphone 6 so I know its not a problem with a specific phone.