: : : : : Can you put a BASIC script into a web page???
: : : : :
: : : : : ~~ Skaven ~~
: : : : :
: : : :
: : : : No. vbScript is the closest you'll get.
: : : :
: : : Yeah, I thought that would be the case.
: : :
: : : ~~ Skaven ~~
: : :
: :
: : Actually, yes, you can use compiled .exe QB programs as CGI and I have done it before. Like any other CGI language, QB uses stdout so you can just PRINT your html data.
: :
: : The problem is that unfortunately most commercial servers don't support 16-bit DOS applications for CGI (actually, most don't support any .exe programs). And most ISP's will probably laugh at you if you ask!
: :
: : However, if you're talking about using your own server it shouldn't be a problem. I used Xitami (free compact server software, see www.xitami.com) and it worked fine. Otherwise, there is some 16-bit CGI gateways available if you already have a different server set up.
: :
: : If you want some source code to see how its done once you have the server set up (eg. read in form data, etc), I'll post it - it's surprisingly very simple to do.
: :
:
: Except for one little detail:
:
: Yes, QB can be used to output HTML (at least, I'm assuming you are right), but the question wanted it embedded in the page itself like vbScript of JavaScript can be. In that case, no, it can't be done.
:
Yeah you're right, you can't write QB "scripts" in the sense that a script is an uncompiled program. I guess I misread the question!