Scott, I don't know or understand the esoterics of urlEncode, but the
following, which is a simple registration form POST to be handled by a
simple PERL script, does work. Perhaps the model you see here will help.

on mouseUp
  local tText
  put "a-email,j-subject,k-comments,i-country,b-firstname,c-lastname" into
requiredFields
  repeat for each item z in requiredFields
    if fld z is empty then
      answer "Email, name, subject, country and comments are required.."
      select  text of fld z
      exit to metacard
    end if
  end repeat
  set the cursor to watch
  put "recipient=" & fld "recipient"  into tText
  # put "&sub=Comments from Studies Stack" after tText
  put "CyberHall--" & fld "j-subject" into jai
  put "&subject="&urlEncode(jai)  after tText
  put "&email="&urlEncode(fld "a-email") after tText
  put "&a-firstName="&urlEncode(fld "b-firstName") after tText
  put "&c-lastName="&urlEncode(fld "c-lastName") after tText
  put "&d-add1="&urlEncode(fld "d-add1") after tText
  put "&e-add2="&urlEncode(fld "e-add2") after tText
  put "&f-city="&urlEncode(fld "f-city") after tText
  put "&g-state="&urlEncode(fld "g-state") after tText
  put "&h-zip="&urlEncode(fld "h-zip") after tText
  put "&i-country="&urlEncode(fld "i-country") after tText
  put "&k-Comments="&urlEncode(fld "k-Comments") after tText
  post tText to url "http://mahiai.aloha.net/~inners/cgi-bin/formMail.pl";
  set the cursor to watch
  showreport it
end mouseUp


Good luck!
Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to