Parse input hidden using ossn_view_form

Dimitris Kerestetzis Posted in Beginning Developers 10 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 10 years ago

You can pass the value to action

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

gr Dimitris Kerestetzis Replied 10 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 10 years ago

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