Hallo, my name is Fabio Cappabianco and I'm trying to make a CGI in CiaoProlog.
The problem is: When the program get some data from a CGI form and try to compare with another one the following error message apears:
{ERROR: No handle found for thrown error error(existence_error(procedure,/(user:=,2)),/(user:=,2))}
Is there a way to transform data from POST mode to a Prolog term that could be compared? I know that by the command prolog_term/1 data from the program can be writen in HTML, but is there some way to do the reverse operation?
Thanks a lot!
Fabio Cappabianco. ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
FABIO AUGUSTO MENOCCI CAPPABIANCO writes:
The problem is: When the program get some data from a CGI form and try to compare with another one the following error message apears:
{ERROR: No handle found for thrown error error(existence_error(procedure,/(user:=,2)),/(user:=,2))}
What you are getting is the (toplevel) error message for an uncaught exception; this error message defaults to printing the term (also called 'ball') which was raised by the error. What happens (at least in this point) is that you are calling the predicate = of arity two (e.g., as in X = Y) and this predicate does not exist. You probably mean X == Y (if you want to test for inequality):
[2]> ciao Ciao-Prolog 1.9 #8: Mon May 27 19:52:33 CEST 2002 ?- a = 2. {ERROR: user:=/2 - undefined predicate}
no ?- a == 2.
yes
MCL
____________________________________________________________ Don't create a problem for which you do not have the answer. ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------
FABIO AUGUSTO MENOCCI CAPPABIANCO writes:
Is there a way to transform data from POST mode to a Prolog term that could be compared?
Maybe html2terms/2, xml2terms/2, in library pillow might help you in that.
Francisco Bueno CLIP group - CS Dept. - FIM - UPM Campus de Montegancedo - 28660, Boadilla del Monte - Madrid Tel: +34 1 336 7441 Fax: +34 1 352 4819 Internet: bueno(a)fi.upm.es http://www.clip.dia.fi.upm.es/~bueno/ ============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------