Skip to content

Tag: javascript

how to call php mail file inside angular project?

I have created single page application using angular which contains contact form. for contact form i have used php mail function. I’m keeping that php file inside assets folder of angular project. I am using angular HTTPCLIENT module to call that contact php file using below code in component: Service C…

why my variable does not pass in the modal box

good evening I have two sites the first in php and the second in wordpress on the one in php i have a table with links each link opens an article to wordpress the link is in $donnees[“guid”] I did some var_dump of $donnees[“guid”] the results are correct Except when the modal opens It&…

How to copy HTML content into a new tab [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 4 months ago. Improve this question I am…

run PHP script in JS file

I have minimal knowledge in php and js. Im trying to get value from my form once submit button has been click then trigger my php script. Js file: Here’s my php script: Here’s my form code in index.php. I have 3 fields name, email and message: I get console.log empty values. Is this the right path…

WordPress ‘Function is not defined onclick’

I am currently working on a custom WordPress plugin. I have to use this specific folder structure: plugins/ myplugin/ pdf.php plugins/ myplugin/ inlude/main.js pdf.php looks like this: but whenever i click on the button i get the error: Uncaught ReferenceError: make_PDF is not defined even when i have a funct…