Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Problem with CGI

From: ammon:addept:ws at: 25-Jan-2004 5:29

Ok, what you are seeing here is that PRINT will try to obtain the value of a WORD! (datatype) within a block. the simple fix for the error you are seeing is to enclose the words "Email Status" in quotes thus making it a STRING! instead of a word. This should work... #!rebol -cs rebol [title: "EMail"] print "content-type: text/html^/" data: system/options/cgi/query-string cgi: make object! decode-cgi data print [<HTML><BODY><h1>"Email Status"<h1><hr><P>] failed: error? try [send to-email cgi/email cgi/message] print either failed [ {the email could not be sent.} ][ [{the email to} cgi/email {was sent.}] ] print {</BODY></HTML>} HTH ~~Ammon ;-> ----- Original Message ----- From: "ZikZak" <[ZikZak--wanadoo--fr]> To: <[rebol-list--rebol--com]> Sent: Sunday, January 25, 2004 5:09 AM Subject: [REBOL] Re: Problem with CGI
> ||A useful resource is try searching for CGI and you will > |find|many usefull examples and tools. > || > ||HTH > ||~~Ammon ;-> > > unfortunately this is an example I tried to use. > When I submit my form, my server returns an error page displaying this
message :
> ** Script Error: Email has no value ** Near: Email Status > > I can not figure out this message because I entered the Email value, my
URL is :