Skip to content

Tag: javascript

Navigation as a separate page in PHP

I am using my Navigation as a separate page which is Navigation.php and I am adding this page by <?php include ‘header.php’; ?> in everypage. But when I am going on a page, for example: going to About page, that About button in navigation bar have a class class=’active’ and that …

$_POST remains null when posting through ajax with formData

This is the form: Ajax/Javascript: php: Output: The var_dumps basically output nothing, these are the notices shown for the php file: The final scope of this is to be able to send an email with an attachment using $_FILES for the file, and $_POST for the text data. But first I need to figure out why $_POST is…

How to receive Fetch() POST in php?

So i got this POST json method here, but can’t understand how to get my json data It’s packed in BLOB which is packed in FormData How to receive such POST in php? (and convert this FormData(Blob) back to json?) JS I’m big noobo, so i can’t even receive it Seems like it works differentl…

html page screenshot to pdf using html2canvas and jspdf

I am trying to create a receipt or invoice to pdf by screenshot of a php page. I found a source code on youtube and tried it for myself, however, it is not saving or downloading any pdf. here is the code and i made it as short as possible to be able to recreate: in the youtube i watched,