[Solved] Javascript won’t work in PHP.


I’m not going to parse through your syntax errors. Use a code linter yourself to do that. They are built into even free IDE’s these days and you can even paste your code into online syntax checkers

You don’t set innerHTML for an input you set it’s value

Change

document.getElementById("WgetID").innerHTML = "Link added to wget"

To

document.getElementById("WgetID").value = "Link added to wget"

3

solved Javascript won’t work in PHP.