tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/8-configuring-the-form-processing-scriptCascade CMS: Discussion 2011-04-07T22:11:51Ztag:help-archives.hannonhill.com,2010-02-09:Comment/16024922010-05-04T20:04:48Z2010-05-04T20:04:53Zconfiguring the form processing script<div><p>I'm trying to configure the form processing script by following
the procedure outlined in this URL from the knowledge base:
<a href="http://www.hannonhill.com/kb/cast/form/">http://www.hannonhill.com/kb/cast/form/</a>.</p>
<p>Currently, I'm trying to get the form to send emails to a list
of addresses. I can submit the form to the PHP file that processes
the form but I don't receive any emails.</p>
<p>The URL of my test form is <a href=
"http://www.northeastern.edu/test/forms/myform.php">http://www.northeastern.edu/test/forms/myform.php</a>.
I added some fields to the form builder data definition included in
the tutorial so the form includes two addresses that should receive
emails.</p>
<p>The URL of the form configuration XML file described in the
instructions is <a href=
"http://www.northeastern.edu/test/forms/form-config.xml">http://www.northeastern.edu/test/forms/form-config.xml</a>.</p>
<p>I can paste the form processing PHP code that is being generated
by Cascade into another message if that would help.</p>
<p>The web server hosting the files is running PHP 5.1.6. The
instructions say PHP 5+ is required.</p>
<p>Does anyone have any advice on where I'm going wrong? I haven't
worked with PHP in years, so I'm having trouble debugging this
issue.</p></div>Roger Donaghytag:help-archives.hannonhill.com,2010-02-09:Comment/16024922010-05-05T15:02:36Z2010-05-05T15:02:36Zconfiguring the form processing script<div><p>Hi,</p>
<p>Can you go ahead and attach your form processing block code to
this post (ie, the contents of <strong>form.php</strong>)?</p>
<p>Thanks!</p></div>Timtag:help-archives.hannonhill.com,2010-02-09:Comment/16024922010-05-05T16:04:59Z2010-05-05T16:05:01Zconfiguring the form processing script<div><p>The form processing script is attached.</p>
<p>I read through some of the other threads in the forum yesterday
and saw that the CAST tutorials are outdated and may not work. Then
I realized that some of the example sites in my Cascade instance
might contain more recent examples of forms and found a sample in
example.edu, so I might try to work with that as well.</p></div>Roger Donaghytag:help-archives.hannonhill.com,2010-02-09:Comment/16024922010-05-07T14:48:59Z2010-05-07T14:48:59Zconfiguring the form processing script<div><p>I followed the instructions to set this up on my local machine
but I wasn't able to get it to fire off any emails either. I even
tried hard-coding some values directly into the script but still
could not get it to work properly. So, it seems that something has
changed since this was originally created that may be preventing it
from working correctly. Hopefully you'll have better luck with the
newer samples provided in the default database.</p>
<p>The main thing to take away from the sample is how one can
create a data definition, attach it to a page in Cascade, then have
it publish out a configuration file that can be consumed by a PHP
script. The PHP script then will all of the work once the form is
filled out on the live website.</p></div>Tim