what I'm trying to do is add two numbers passed on this query string

sum.r?num1=3&num2=5

and i'm getting this error

** Script Error: Cannot use add on string! value. ** Where: cgi/num1 +
cgi/num2 

and this is the code I'm using
********************************** start code **************
print "Content-Type: text/html^/"  ;-- Required Page Header
cgi: make object! decode-cgi system/options/cgi/query-string
print [
    <html><body><h2>"CGI Results:"</h2>
        "result =" cgi/num1 + cgi/num2
    </body><html>
]
********************************** end code **************

is the problem on line 2 ?
or is it something more simple

Thanks
Donal

"Up the REBOLUTION !" http://www.rebol.com

Donal Greene,
Webmaster,
Educational Multimedia Corporation (Ireland)
EMG House
Deansgrange
Co. Dublin
Tel:  +353 1 289 9000 extension 302
Fax: +353 1 289 9150

Reply via email to