Skip to main content

All Questions

Tagged with
38,777 questions with no upvoted or accepted answers
8 votes
3 answers
8k views

Adding reCAPTCHA v2 into my PHP file

The PHP problem has been solved. Here are the HTML and PHP codes that I'm using: contact_form.html: <html> <head> <title>My Contact Form</title> <script src='https:...
AdelaP's user avatar
  • 105
8 votes
0 answers
410 views

Does PHP in html mode auto-trim only 1 new line after php tags?

PHP enters html-mode if there are no php tags. That's simple enough. This code: <pre>a <?php echo 'b';?> c </pre> Will output: a bc The new line after <?php echo 'b';?> is ...
CoR's user avatar
  • 3,876
7 votes
0 answers
1k views

R flexdashboard and log-in form

I have a flexdashboard, which is not hosted on a server and I use it as a local html file. However, I need the content of the HTML to be password protected. I know i can use win-zip, but I was ...
Prometheus's user avatar
  • 1,997
7 votes
0 answers
2k views

Sendgrid php : send email in both text/plain and html

I use the Sendgrid PHP API and would like to send emails in both text/plain and text/html, I tried : $request_body = json_decode('{ "content": [ { "type": "text/plain", ...
Julien's user avatar
  • 4,073
7 votes
1 answer
426 views

Is it possible to run CodeIgniter within a TideSDK App?

I'm working on a desktop application which needs to embed the WebKit browse, so I'm using TideSDK for this purpose. I'd like to know if CodeIgniter can run smoothly on this environment.
danielperaza's user avatar
7 votes
2 answers
9k views

How can I pass variable from parent template to child template in Twig?

I'm working with Symfony and Twig and I can't find solution for the next problem: in my parent template (index.html.twig) I have such code: <noscript> {% block noscript %} <div class=...
Pawel Novikov's user avatar
6 votes
1 answer
337 views

Lazy Load for CSS Images

I have the following lazy load function which works for <img>. <script> document.addEventListener("DOMContentLoaded", function() { var lazyloadImages; ...
Andrei Gradinaru's user avatar
6 votes
1 answer
2k views

Calculating driving distance between places

I have managed to get an autocomplete function to a form input with Maptiler API (OSMNames) (since I find Google Maps API even more confusing). So here comes the actual problem, I would like to get ...
Agustín Suárez's user avatar
6 votes
0 answers
4k views

mpdf output document to html

Can I output the mpdf document as HTML string or file instead of a pdf? It will be helpful for debugging. Example: $mpdf->WriteHTML($page_config_css, 1); $mpdf->SetHTMLHeader($...
ramiwi's user avatar
  • 992
6 votes
1 answer
2k views

How to insert translated text into database php

<!doctype html> <html> <head> <meta charset="utf-8"> <title>Test</title> </head> <body> <form action="" method="post" name="theform"> <table ...
Ivan's user avatar
  • 93
6 votes
1 answer
366 views

Form field changes focus when I click on the text input

I have a search form below that has two select input types and one text input field where the user can search by keywords. For some reason, whenever I click on keywords text box, the focus changes ...
JA4677's user avatar
  • 551
6 votes
1 answer
1k views

Image effects to canvas image not save with php upload but applies to download of same canvas file

Here is a youtube video showing the problem: https://www.youtube.com/watch?v=znzLQSYlsKM. I give links to all code involved in the video description. I'm using a js library to apply affects to an ...
Grant Zukel's user avatar
  • 1,183
6 votes
0 answers
3k views

WordPress Spam on ?action=register URL

Like everyone, we are experiencing spam issues on our WordPress site. We get a significant amount of traffic every month and we've run into a weird issue. We are using the Really Simple Captcha plugin ...
MillerMedia's user avatar
  • 3,671
6 votes
0 answers
2k views

Streaming HTML5 large (>2GB) videos with PHP

Ok, so basically I'm working on a project where I need to stream MP4 videos from a hidden source. As most of people in this forum with this problem, I've used a solution derived from: http://...
Inigo EC's user avatar
  • 2,258
6 votes
2 answers
3k views

Pretty-printing Wordpress HTML output for development purposes

Is there a simple way (plugin / function) that uses Tidy or some other lib to pretty-print Wordpress's HTML output? It's unreadable as it is and it's almost impossible to write a theme with proper ...
Andrei's user avatar
  • 1,616

15 30 50 per page
1
2 3 4 5
2586