ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Form action to PHP page - need help

August 10, 2007 9:07pm

Subscribe [3]
  • #1 / Aug 10, 2007 9:07pm

    cmb917

    6 posts

    I’m sure there is an easy way for this, but I’m unable to find it. I’m migrating my existing site over to Expression Engine. On my old site I have a form action (newsletter registration) that goes to a .php page that emails me the content of the form submit.

    I did the following:
    - I created a response_template that housed my PHP code
    - I set the preferences for the repsonse_template to allow PHP
    - I included the following html in the registration form

    <form action="{path={my_template_group}/response_template}" id="contactform" method="post">

    I receive the following errors on the response template page, when i submit a registration:
    Notice: Use of undefined constant email - assumed ‘email’
    Notice: Undefined variable: HTTP_POST_VARS
    Warning: reset(): Passed variable is not an array or object

    I’m going to use EEs newsletter feature soon, but 1) I need to migrate quickly and 2) I need to capture a number of additional fields and 3) I need an email alert when somone submits a newsletter registration.

    Thanks in advance for the newbie question.

  • #2 / Aug 11, 2007 7:19am

    Ingmar

    29245 posts

    The “native” EE way of doing this would be using Solspace’s Freeform module (which is free, too!).

  • #3 / Aug 11, 2007 9:55am

    cmb917

    6 posts

    Hello Ingmar. Thanks so much for the response and Freeform. I downloaded and installed last night, and yep, it did exactly what I needed it to do. Great stuff and the price can’t be beat.

  • #4 / Aug 12, 2007 12:05pm

    Robin Sowell

    13255 posts

    Yep- Freeform is sweet- and keeps getting sweeter!  It’s one I install by default now- I can just about count on using it on any site I build.

  • #5 / Jan 03, 2009 2:16pm

    tamalita

    34 posts

    In regards to the contact form—I do get a lot of spam from the basic contact form in EE. I changed some settings in my setup and now I’m not getting as much. However, I use a robust contact form for all of my non-EE clients and it’s awesome. I’d really like to use it on my own EE-based website. So .... is the freeform pretty robust? or is there a way to actually use my favorite contact form?

  • #6 / Jan 05, 2009 3:57pm

    Greg Aker

    6022 posts

    tamalita:

    I like Freeform and use it quite often.  As far as setting up your own contact form to hook into EE, check out the dev docs

    -greg

  • #7 / Jan 05, 2009 5:21pm

    tamalita

    34 posts

    I don’t have a problem using Freeform, just hoping it helps to keep the spam down .... lol thank you!

  • #8 / Jan 05, 2009 5:23pm

    Ingmar

    29245 posts

    Very good. Since this is a bit of an older thread, and the initial issues seem to have been resolved, I am going to close it out. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases