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 1 year ago. Improve this question I need to calculate price of shipping every 500g. I need it in Javascript or PHP. Please help me out figure it. For Eg: Lets
Tag: php
Select2 is not selected when update a select field by ajax call
I am facing a problem when I use select2 class in select option. When I insert a form data using a field select2 class by ajax call then it is working properly But when I update that select2 field by ajax calling same form firstly it is not selected value that I inserted first. Note ajax response is working properly
Can php wait for a very long time before responding to an ajax request
I would like to make a chat site where the js AJAXs to PHP and the PHP waits for the database to change from what the user has then it responds to the user and the user again in the recall function AJAXs the server and so on. I would like to call the same server holding the request to
Implement product review for google customer review program in WooCommerce
Im trying to apply product review for my website with google merchants optin review code. I succeeded doing the part of the country, date, id, and email.. Now I’m not succeeding get the EAN or GTIN numbers from the code to apply to the product reviews… can you please help ? Here is the code.. is already working al the
Using existing lat/lng leaflet markers in separate AJAX function / API call
I have a leaflet map with markers showing the top cities in a chosen country. When a marker is clicked, the lat/lng of that city is used in an AJAX call and a modal displaying weather information for the city pops up through use of a PHP cURL routine to a weather API. A couple of easyButtons appear after this
Dynamically inserting latitude/longitude from array to weather API call in PHP
I have a leaflet map which has markers displaying the top 10 cities in a country depending on what country is chosen from a select field. $latLng contains 10 latitude/longitude pairs and is being used to add each city at that location onto the map. Example in console (Australia): The locationList array is stringified and used as data for the
Send data from a check label
Good day, I’ve the following problem, I’m making a form that I sent the data to a Gmail email, the problem is that when choosing a plan, the page throws an error. The mail arrives without any inconvenience and the selected plan but, the page remains with the error. Here I take the data and organize it to be prepared
curl API PHP using ajax
I am trying to get wikipedia api using curl PHP with geonames. But it seems to be something wrong in the connection between the php file and the script. I have tried the url with hard coded values in the PHP and it works however if I tried to concatenate using $_REQUEST the url doesnt work is like the parameter
WebCrypto JS SHA256 HMAC Mismatch
I have two scripts that generate a SHA256 HMAC, with a plaintext message and Base64 encoded key. One is written in PHP and the other in JavaScript. The PHP script returns the correct HMAC, but for some reason the JS version does not. What is causing this? Here are the code samples, with a redacted (still similar in nature) key.
Is there other way to create pdf in php?
Hello I’ve got a problem with my page, cuz I want to generate PDF file async with jquery, command: In my controller it looks somethink like this And that doesn’t work, But if I type in URL /pl/home/generujPDF it just work fine. I check how it looks in “Network” tab in browser and I have 2 other types of this