Forum OpenACS Q&A: Form Processing...

Collapse
Posted by Scott Mc Williams on
Ok..thismight be totally lame. But is there a function or something
in ACS that allows me to process a HTML form easily? I've got a form
that I created and I need to send the results to a user. I don't want
to use the cheesy <form method="post" action="mailto:blah@blah.com";>
but that's what I'm doing for now...

Any ideas?

Thanks,

Scott

Collapse
Posted by Aaron Swartz on
You may want to use ArsDigita Telegraph (http://tools.arsdigita.c om/telegraph/). If you want something on your own server, just use set_variables_after_query and ns_sendmail to do it. You'll need to know the variable names, but if you're the one creating the form, it shouldn't be too hard to do. It'd look something like:

set_variables_after_query

ns_sendmail $your_email $your_email "Form Submission" 
"Name: $name
Address: $address
Phone: $phone"

where name, address and phone are the name of the variables in your form. If you have problems, feel free to email me.
Collapse
3: Thanks... (response to 1)
Posted by Scott Mc Williams on
Hi Aaron,

Thanks for pointing me to Telegraph. I knew there had to be an easy solution!

Scott