Skip to content

Show dropdown value based on previous selection

Is it possible for me to only display the related data on my second dropdown option when I click it on my first dropdown? I saw a similar question on stackoverflow, but I can’t get it to work. The link is available here. It works when I copy and paste the code from the solution into my system. However, …

php file size validation

I would like to create in php file size validation for every single file. I used for loop to add attachments, and then created condition to check file, but it’s not working. There’s no error, but it send mail with oversized attachment, instead of stop. Without the size validation part, it sends ma…

How can I output values from an Excel table on my website?

In my Excel spreadsheet there are several values, both numbers and text. I would like to display these values on a web page inform of graphs. But I have no idea how to solve this, I thought of Python and PHP. I try to do it with HTML and it is impossible. Answer You can read the file using the

Can’t execute script if session not set

Good morning, I am trying to develop a link shortener system with statistics in php (5.6). One of these stats is the number of sessions. I am trying to use this logic: With my first approach i tried to put session_start in the middle of the code and it didn’t work. I realized I can’t do it and I m…