Skip to content
Advertisement

Tag: html

HTML form rendering with weird hidden input fields

I have a new ecommerce site, which uses lead forms to collect customer info. On our live production site, there are hidden input fields with encrypted looking name and value attributes. Here is an example: These fields are not present in the template code, so I don’t know why or how they are getting added to the live pages. I

How to Copy Text to clipboard upon echo with PHP & JS?

apologies if this sounds super stupid. I’ve spent some time trying to do this, and the only way I’ve found is after clicking something like a button. I have a form for generating license keys and I would like to copy license key to clipboard after generation, so I’d like to know if there’s some JavaScript code that I can

How do I force a link to download a document not preview it

I am generating a table of entries in a MySQL database using PHP. Each record references a document. I am putting a button link in the table to download the document for that record. The documents largely link to csv files. However, when clicking on them, it loads the csv file in the browser, but I want to force it

Why is my PHP Code not Working , HTML website?

Ok so i made a HTML website for a school project and i tried incorporating into it a ” Contact Us ” section in which u give your name , email and a message to be sent to my adress. I can’t seem to find any error into the code . When i am trying to send the info ,

Website is throwing errors out of nowhere?

I literally don’t know what is causing this error, maybe one of you do. First of all I would like to state that, I have a two sites up and running with the exact same source/db, one is working fine. So out of nowhere errors came up on my second site (see picture below) causing Dropdown menus, charts and the

How to preserve formatting and protect the code from scripts

I am trying to find a way to escape the scripts or tags inserted to my database and at the same time preserve the text formatting. However I bumped into several problems that only solved either of the two. I’m trying to do it in $blog[‘title’] and $blog[‘content’] I tried using nl2br() to preseve the formatting. It works on preserving

Advertisement