Skip to main content

All Questions

Tagged with
38,764 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
338 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,278
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
6 votes
2 answers
240 views

Insert " < " into html file using php

Is there a way I can insert < or > in HTML file using PHP. Here is a a part of code <?php $custom_tag = $searchNode->nodeValue = "<"; $custom_tag = $searchNode->setAttribute("data-...
Slit's user avatar
  • 511
6 votes
1 answer
3k views

Wordpress auto closing <a> tags

I've run in to this annoying feature of Wordpress before, but mainly with it obsessively <p> tagging everything, this is a little different. I've got a bit of php in my themes functions file ...
MrWedders's user avatar
  • 156
6 votes
3 answers
5k views

How to stop downloading PDF in an iframe automatically and instead view the file?

I have an iframe on my website that loads a PDF file : <iframe src="file.pdf" frameborder="0" width="800" height="600"></iframe> But it's downloaded automatically , I want to view the ...
Sam's user avatar
  • 163
5 votes
1 answer
188 views

PHP echo not outputting html tags

I'm trying to output content from an Advanced Custom Fields (ACF) in my wordpress theme. At the moment though, all I'm getting is the plain text content from the ACF inside double quotation marks, not ...
Jono's user avatar
  • 53
5 votes
1 answer
2k views

Async or defer (or delay) CSS load

I'm working on my site speed score and trying to improve my Pagespeed (Remove unused CSS report). First I have followed this page: load CSS simpler and I have deferred the following way but page speed ...
z-1881's user avatar
  • 123
5 votes
0 answers
7k views

How to autoplay embed Google Drive video?

I have uploaded the video in Google Drive and trying to use the link in my website. The video should be auto-play. I have tried ?autoplay=1 and ?Start=1 after the URL. But video does not autoplay.
US-1234's user avatar
  • 1,529
5 votes
2 answers
4k views

How to update data in SQLite table using php?

I am working on a php code as shown below: class MyDB extends SQLite3 { function __construct() { $this->open('database/Podcast.db'); } } $db = new MyDB(); $f = $mp4_files[$...
flash's user avatar
  • 1,491
5 votes
1 answer
671 views

DomPDF display data table except last page

I am working to produce pdf in codeigniter data. All code runs perfectly, it's just that I have a problem when doing a condition for the last page, the question is simple, I have data in table form ...
AdityaDees's user avatar
  • 1,048
5 votes
2 answers
2k views

Change Subject and Content of WordPress Default Activation Email

When a user registers on my site, they receive an email to activate their account, but this email is in english and I need to change its content. I've tried changing the default WordPress language ...
Rui Farinha's user avatar
5 votes
1 answer
3k views

getting "no video with supported format and mime type found" in php but no in html

I used video tag in an HTML file and it works fine. <div class="modal-body"> <video id="cartoonVideo" width="560" height="315" frameborder="0" allowfullscreen ...
mohammadreza khalifeh's user avatar
5 votes
0 answers
80 views

Safari not refreshing 'div' after search call with .load()

I have a page divided into two. To the left content, I am loading html content created from database query based on form search inputs. The div is loading fine (I can see it in console.log). But my ...
DV2018's user avatar
  • 51
5 votes
0 answers
2k views

Css page counter reset

Im using Dompdf to create pdf files and to not get huge files i create multiple pdf files at once. (Talking about 1.4 mb instead of >300) So the plan is to add first pdf, add a page break and then ...
cottton's user avatar
  • 1,599
5 votes
0 answers
1k views

The Google Maps JavaScript API must be downloaded directly from Google's servers

I use Google maps js API but without directly asking for it ( cause of proxy limitations). So until now I had a php script (in my server) as a middle layer. So I had this line in my index.html: <...
teonapster's user avatar
5 votes
0 answers
721 views

Bootstrap 4 nav menu not working properly on iOS Safari

The bootstrap 4 nav collapsing menu isn't working properly on iOS Safari for some reason. When pressing the hamburger icon it doesn't expand like usually but displays like that. Screenshot: https://i....
Hurtox's user avatar
  • 89
5 votes
1 answer
606 views

Get data from a form that is in an iframe

I would like to get the data of my form which is in a iframe in my main form with $_POST, it's possible ? This is the content of my iframe : <form method="post" action="demo.html"> <div ...
ElGecko's user avatar
  • 69

15 30 50 per page
1
2 3 4 5
1293