Skip to content
Advertisement

Tag: php

Set PHP varibles on button press without using POST or GET

I need to set 3 PHP variables on a button press, but the problem is I can’t use POST or GET to do it due to it refreshing the page which breaks my JavaScript code as it includes an onClick event listener. What I want my code to do exactly is, on a button press set 3 variables, $title, $description

how to upload all images from a folder

trying to upload all images from a folder destination folder on server side is test destination format for images is uniqid().jpg problem – seems resulting array on server side is empty upload.php Answer You are passing a FileList object fd.append which is incorrect you have to loop through the list and add each file individually. You’re using the array of

How to export highcharts graph and send it by email?

I’m ussing highcharts in my project and I’m abit new in that. My problem is that how to get a capture of my chart and then send it by email? for email sending I’m ussing PHPMailer, the email works correctly. I searched in highcharts documentation they propose node export-server, but there is no example. I got some hints from internet

Modal validation using Bootstrap Modal – PHP

PHP Script & Validation: Modal: I don’t know where the problem is, I want the modal to remain open even if the problem or form has been submitted successfully. Now, with this code, if there is a problem with the submit form, the modal shuts down and if we open it again, the user can see error messages. Where am

setTime() replacement in php [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 8 months ago. Improve this question I want to convert below javascript code to PHP returning value Wed Jan 12 2022 07:03:22 GMT+0530 (India Standard Time) As in javascript setTime() function

code event[] calendar in laravel 8 not working

I created a calendar with laravel 8 and PHP 8,it is running ok in php 7 but I have to upgrade to php 8 because of the demands of the times I have successfully saved data in the database but the data in mysql does not appear in the calendar, even though I have used event[], I have checked that

Advertisement