Qbasicnews.com

Full Version: Basic in Html
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey is there anyway to use like basic (as in like quickbasic) language in HTML like you use javascript
If you are asking if you can write a program in QB and embed it into your webpage like javascript or java .. the answer is no. If you are looking to make interactive websites just take a couple days and learn javascript, it's really quite simple.
what about visualbasic script :wink:
You can actually...

http://plantasy.darkwizard.org/x-rix/
As an example..


You can use QB programs as.. err. CGI (?) executables, executed by the server, or something like that



EDIT: Wrong url
Just as Zire said is a perfect answer to what you want. Of course, now with FreeBASIC, you can write CGI FreeBASIC programs for Linux -and- Windows.

Example:

[syntax="FreeBASIC"]
print "Content-Type: text/html"
print
print "Hello, world!"
[/syntax]

Compile under Linux:

Code:
fbc fbcgi.bas

You'll get a binary called 'fbcgi'; upload it to your webserver and CHMOD it:

Code:
chmod 755 fbcgi

Then you should be able to run the program. It would be a good idea to ask your web server administrator before doing this though... they might not want you doing it for fear of security.
Heh,.. could u program FB's Gfx, or maybe even a OpenGL webpage? Big Grin
Aptilis -- Basic for CGI
http://www.aptilis.com/
Ratt.. No.. well.. yes you could..

But the program is only executed on the host computer..

I think it's only pure text in normal console mode thats visible..
I thought the QB server outputted to html, like a php file.
Tongue Now wheres the fun in that? lol

:roll:
Pages: 1 2