UPDATE: HTML is not a templating language, it can't be sent variables. This is what I was trying to say but it took me a bit to recall it.
In all of my coding for websites, a .htm/.html file, while it can include client-side code like VBScript or JavaScript, there is no provision to pass a variable to a file that is not considered a CGI Scripting language, like PHP, PERL, ASP, Python, even EXE files.
Only these languages, as setup in the HTTPD Protocls, can accept variables.
I'm not up to speed on the HTML5, whether it allows for variables to be passed to an HTML file.
It has been awhile since I set up a server, but there are mime types and scripts are a special type. Since they are executables, it makes sense to pass variables to scripts.
HTML are static pages. While inside a HTML file you can execute a script like VBScript, ASP, JavaScript, it will obtain its own data. Also, POST and GET for executing CGI-BIN programs will allow you to pass it variables from a HTML form, but you cannot pass data externally to a HTML file directly.
Browser Drops URL Query Variables
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Browser Drops URL Query Variables
Last edited by GeorgeMcGinn on Fri Sep 22, 2017 2:08 am, edited 2 times in total.
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
- GeorgeMcGinn
- Posts: 435
- Joined: Sat Sep 10, 2016 6:37 am
- My devices: IPad Pro 10.5in
IMac
Linux i386
Windows 7 & 10 - Location: Venice, FL
- Flag:
- Contact:
Re: Browser Drops URL Query Variables
To get a better understanding of this, please read:
http://www.webdeveloper.com/forum/showt ... -html-page
http://www.webdeveloper.com/forum/showt ... -html-page
George McGinn
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)
Computer Scientist/Cosmologist/Writer/Photographer
Member: IEEE, IEEE Computer Society
IEEE Sensors Council & IoT Technical Community
American Association for the Advancement of Science (AAAS)