EllisLab text mark
Advanced Search
     
publish_form_field_unique and clean input
Posted: 16 November 2007 07:29 AM   [ Ignore ]
Avatar
Joined: 2006-01-24
1210 posts

Hey guys,

Hoping someone can point me in the right direction on this one.

Heres what I’m trying to do…

I’m trying to create an advanced custom field with numerous input boxes. The data from the custom field will be saved in a new db table and the original field value will be left blank.

It gets a little trickier because the input fields are named like this lg_inputs[‘question’], lg_inputs[‘answers’][]

So onto the issue…

When I try to access the $_POST global it seems I am getting a cleaned single dimension array. array(‘question’, ‘answers’)

Is there any way to get the original $_POST data?

One option I was considering was using the

publish_form_start 
to reassign the $_POST variables to a global variable and then call that variable in the
publish_form_field_unique 

extension.

Has anyone got any guidance on this one?

 Signature 

EE-Garage.com - All my ExpressionEngine 2 Addons!


EE2 - NSM Better Meta - SEO Meta & XML Sitemap Generator
EE2 - NSM Live Look - Real entry previews


Newism - Newcastle - ExpressionEngine Experts

 
Posted: 16 November 2007 12:07 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2002-06-03
6432 posts

Can you paste the output of print_r($_POST) here, as I’m not sure I’m following you.  For good measure, go ahead and copy/paste the HTML source of the rendered form.