[AWS] Using input from a web page.

andy . i_eat_pies@hotmail.com
Tue, 17 Feb 2004 22:23:58 +0000


I'm using AWS 1.1 on Red Hat with Gnat 3.15p and APQ 2.1. (Version 1.1 
because i didn't install it, and the person who did, wanted an RPM, and we 
could only find one for 1.1).

I'm sorry if this seems very simple but i can't quite work it out.
I want to produce a program which uses AWS to make pages (or calls pre-made 
html pages) with input boxes on them.  The input from these boxes would then 
feed into my Ada program and this input would decide how i edited the MySQL 
database i am using.  E.g. if one of my html pages was to query the db there 
would be a box to enter which fields to display.  I then want to output the 
db output to the screen using AWS and html pages.  I can produce the pages 
using AWS.Server.build.

I just want to put a html front to a 'normal' Ada program really(and allow 
it to work accross a LAN).

But my problem at the moment is i can't use the string which is returned 
from 'Get'. I believe it's to do with the form parameters, but i can't do 
anything useful with them yet. I want to get the users' input into a string 
which i can then compare against, and enter into the db.

Could anyone please give me an example of how to output some simple boxes to 
create a form, then to get the data entered into a format i can use through 
my whole Ada program.

Thanks, andy

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger 
http://www.msn.co.uk/messenger