Skip to content

Tag: html

PHP: Adapt number ID to words

What do I need to do to convert the number only if all the number matches? At the moment, it’s converting to each number. (I’ve tried to do a lot and I didn’t succeed) I would like to know if have any way of adapting to only show the word if the number “is complete”, otherwise sh…

CGI web application, struggle with variables

this is my first post here. Been reading stackoverflow for a long time and i want to take a time to appreciate everything you do to help community. Thank you. A lack of knowledge in scripting area leads me to creating this post. Due to complication of my problem (in my opinion) i wasnt able to google the solu…

Getting a nested element PHP HTML Simple Dom

I want the commented items from an external website. I cannot edit the website. The website looks like this, i editted a lot of things out but this is the path from the body: I am using PHP HTML Simple Dom and PHP 7.3. I am currently using this code to get the information from the website: I get an

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…