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.

PHP inserting variables into EE

May 20, 2010 1:21pm

Subscribe [2]
  • #1 / May 20, 2010 1:21pm

    Lynn F

    29 posts

    I am trying to use PHP to validate form content, then based on the input, ask further questions, save all to variables, and when my PHP code is satisfied with the answers, insert the variable values into EE weblog.  I can get it into a database with the INSERT INTO php but I would like non-geek types to be able to access the info via the EE platform.

    Thanks,

  • #2 / May 20, 2010 3:19pm

    Gareth Davies

    491 posts

    In order to access the form data in EE you can make use of the input class - see here:

    http://expressionengine.com/docs/development/usage/input.html

    Similarly in order to submit the results into the database you can make the use of the database class:

    http://expressionengine.com/docs/development/usage/database.html

  • #3 / May 21, 2010 2:25pm

    Lynn F

    29 posts

    Thanks Gareth, I was looking all over for a solution and I think this is it.

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

ExpressionEngine News!

#eecms, #events, #releases