Skip to content

Tag: javascript

Convert PHP Doctrine date to JS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 1 year ago. Improve this question There is a webservice that provides me dates in JSON format like this: Whic…

Submit Laravel form using JavaScript

I have an HTML form that I currently submit using the form action attribute and a php script. The post request is successful, but it reloads the page, and I want to avoid that. The project uses Laravel/Blade PHP templates. To prevent page from reloading, I would like to send the post request using JavaScript …

Getting value from HTML and store in a TXT file with PHP

I have a program where I pick a random word through JavaScript and this word changes every-time the page refreshes or someone visits it. Broadly it looks something like this (the relevant bits of the index.php file): What I want to do is store this random word (from randomW.textContent). I want to either gene…