Parse input hidden using ossn_view_form

Dimitris Kerestetzis Posted in Beginning Developers 8 years ago

Hello,

I want to ask if I can pass in my form a hidden field with custom value using the function

echo ossn_view_form( blah blah......

Thank you!

Replies
Indonesian Arsalan Shah Replied 8 years ago

You can pass the value to action

> "action" => ossnsiteurl() . "action/profile/deepost/deeposteditaction?id=".$values->id,

gr Dimitris Kerestetzis Replied 8 years ago

Hello Arsalan....thank you for your answer....
I want to pass this value from other file and the value is in foreach loop,
for example I have ......

  foreach($deepost_edituser as $key => $values){
    echo ossn_view_form('deeposteditform', array(
    'component' => 'OssnProfile',
    'id' => 'editform',
    'class' => 'deepostform-form-'.$values->id,
    'action' => ossn_site_url() . 'action/profile/deepost/deeposteditaction',
            ), false);
    }

I want to pass in deeposteditform the "$values->id"

Indonesian Arsalan Shah Replied 8 years ago

You don't need a ossnviewform to pass hidden field just create hidden input field in your form page.