We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

publish_form_field_unique and clean input

Development and Programming

Leevi Graham's avatar
Leevi Graham
1,143 posts
17 years ago
Leevi Graham's avatar Leevi Graham

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?

       
Derek Jones's avatar
Derek Jones
7,561 posts
17 years ago
Derek Jones's avatar Derek Jones

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.