Why would the same code be in 3 different places/files?

[ad_1]

https://preview.redd.it/drs5q3hnpyyc1.png?width=1068&format=png&auto=webp&s=94cd58c32dbf7864abe824b19438f9a21c9356a9

I keep getting pulled back into website maintenance, but I’m no web dev. I try and learn it while I’m in it, but then I don’t get called to do any more web dev work for 4 or 5 months and it’s just like starting all over for me.

So I have a form that used to submit CC details to rent a vacation home. It worked. I tested it myself.

The code has not changed (AFAIK) since that testing, but now the button to submit the CC info does nothing – just nothing. So I decided to look for the problem and I searched for the button’s ID which is “bookingbuttonvrp” and I see the same code in like 3 different places/files. Why is that?

And look at how some of this stuff is named….

https://preview.redd.it/zf9fotfsqyyc1.png?width=564&format=png&auto=webp&s=a3afed5f4e3626028dd9b94d73b368200ef2c1da

“..\\js\\js.js” – really?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer