I’m trying to make a dropdown list that allows users to select a training program that matches their needs, so when they select it, the option will go into a table in the MySQL database. This is my HTML form: What I need is an SQL query that will go with it, so when they select ‘Example option 3&#…
Tag: html
Run PHP background program on HTML without slowing down a page load
I send a trigger email when someone opens a page with things like an IP address in the email body. I use this to run the PHP scrip from another page. This PHP script takes time to process and it slows down the loading of a page for a customer. in the trigger.php is (I have taken out some lines
How to send data to php after validating information on a javascript file
I heard of Ajax/XMLhttprequest but im not quite sure if thats what I need to transfer the data from a javascript variable to php. The webpage is basicly a contact us page, where customers enter they …
Scrape HTML Page that redirects to itself using Curl PHP
So i’m trying to scrape this page: http://www.asx.com.au/asx/statistics/todayAnns.do it seems that my code can’t get the whole page html code , it acts very wierd. I’ve tried with simple html dom, but nothing works. This shows mostly javascript and i can’t get the page. My goal is to s…
Convert PHP array into HTML tag attributes separated by spaces
I need to convert a PHP array into HTML tag attributes, with spaces and quotes, this is an example: This is the result I need to achieve: There is any PHP function to do it? I am trying these: http_build_query array_walk Answer You can also use this easy one line code, please follwo below code:: Output attr1=…
Allowing video to be played in element from my website, but not allowing it through direct link
I used the below tricks: First, I disabled the right click in order to prevent the user from using save as or get link using this HTML5: Second: I used the controlsList=”nodownload” but the problem it works fine ONLY in Chrome 58+ as per this, later on I may consider customs control as shown here …
html5 date field input is correct but output is reversed
if have the following problem. in my html5 datefield, i have the input order dd.mm.yyyy (for example todays date: 27.04.2017). thats correct in my country and timezone. the posted value is in reversed order to my input. its yyyy-mm-dd (for example todays date: 2017-04-27). is there any way to change the timef…
How to make echo table with two div tag?
How to make echo for table with div ? Table do not work if I need to do echo. My proposal with echo (not work): Answer Just change the echo ” to echo ‘ and at last “; to ‘; ?> Below code will work
How to redirect php file outside of the folder location?
Hello how do you redirect a page outside of the ‘Model’ folder because all my html files are outside of it. I want to redirect my page using this location Example: I have a php folder inside the ‘Model’ folder name login.php so in order to redirect it to the index.html, I have to use h…
Make all links flow through a php file before continuing to the real path (like a login page)
I have this script <body&…