Skip to content

Tag: html

replace html5 upload function with hardcoded path

I’m trying to use a script to display a .csv file and make content filter and searchable. I found this script on github: I want to put this script on my webserver (apache). That works great, however, I want it to work with 1 or more .csv files that resides on the same folder. My goal is that when the

Why should we separate PHP from HTML

I’m rather new to programming and i know how to separate PHP from HTML, but i would like to know if there is any difference in doing this: compared to doing this: Is there any difference between in performance etc, between splitting the PHP code from the HTML code and just echoing the whole page in php?…

Selection option in php

I am working on a PHP quiz game and at the moment i am struggling a bit mixing php and html together as i have more previous experience in html. I have the following select option for quiz selection: I was told that this can be made with php code so that the new quizes are added onto it when

Progress bar AJAX and PHP

I want to create a progress bar for a server-side task ( written in php ) For learning purposes the example and task would be very simplistic. I would have a text field on the client page, read a number, pass it to the php script with ajax and make it calculate the sum of all numbers from 0 to

HTML/PHP – Form – Input as array

I got a form like this I’d like to have as $_POST output an array like: I know I could do something like name=”levels[1][build_time]” and so on, but since these elements get added dynamically, it would be hard to add an index. Is there another way? As suggested, I changed my form. I also inc…

How to access php session in javascript file?

Below is my code: index.php file javascript of index.php file HTML of index.php Description: I have a web page with url localhost/index.php. In index.php, I have a submit button on the click of which I call Result javascript method which sets the marks = 55 and put it into the hidden field and takes me to the…