English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I want to be able to "decode" a query string using only HTML, no javascript; is it even possible?

2007-06-19 12:35:56 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

Well, techically the querystring is a part of the HTTP request, and thus one of the global variables held by the server and available in the header.

That's the key: The querystring isn't part of the document.

So HTML itself can't be used to process the querystring; you need some sort of script to do so, be it JavaScript, PHP, etc.

2007-06-19 14:03:17 · answer #1 · answered by Anonymous · 0 0

No. HTML is a markup metadata - not a programming language.

An active web page can send a query string to the server to be processed and sent on. Use PHP, ASP, ASP.NET, Perl, C, Ruby, Java or anything else.

JavaScript is purely client side, however AJAX could send a query to a webservice to be processed and the result returned.

2007-06-19 20:11:44 · answer #2 · answered by Anonymous · 0 0

Unless I am mistaken HTML is a display language so it doesn't do any "active" type function. Decoding requires processing so that is an active item. To clarifiy that.. you need java, PHP, ASP or some active language to process.

2007-06-19 19:38:31 · answer #3 · answered by Tracy L 7 · 1 0

No HTML can not do that for you. As stated you will need a AJAX, PHP, JAVA or similar server side script to do that.

2007-06-19 19:45:32 · answer #4 · answered by yorkcoparamedic 2 · 0 0

fedest.com, questions and answers