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
Tag: html
Simple PHP: getting variable from a form input
I can’t really use PHP and from what I’ve seen in tutorials this should work, but it doesn’t: <input type='text' name=…
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
Single IF statement vs multiple IFs statements in array obtained from SQL table [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 8 years ago. Improve this question I have a table displaying results from a SQL query. However, for some…
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
One Page Checkout scrolling to the bottom of screen on next
On my magento site, I am getting a strange behaviour in onepagecheckout that I’d like to fix. Basically, on Step 2, after entering all the data required and I click on the continue button, the page automatically scrolls down to the bottom of the screen so instead of seeing the shipping option, you see the foo…
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…
JQuery search box autosuggest – How to select from suggestions with arrow keys whilst still retaining focus on input field
I have a search box that has an autosuggest feature, so it adds suggestions to an unordered list within an absolutely positioned div below the search box. These suggestions are sourced via ajax using …
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…