Page 1 of 1

Read subfile fields in php

Posted: Wed Jan 04, 2017 8:54 am
by amanso
Hi,
i'm a begginer with profoundui over php and i don't know how to read the values of the row selected in a subfile when i'm in the php script after select a row.

Debugging the $_POST variable i see the rrn selected and the input elements in the screen , but the elements in the subfile are output fields and the value is not stored in $_POST.

What's the way to read these values? Is neccesary to enable any property of the fields?

Thanks.

Re: Read subfile fields in php

Posted: Thu Jan 05, 2017 12:27 pm
by Scott Klement
I'm assuming you are trying to use Rich Displays within a PHP script. (You said "profoundui", but this is a suite of several different products.)

We do not send any output elements back to your script. We only send input elements back to your program.

This is no different than an HTML form. Elements on the display that are just <div>My Content Here</div> would not be sent back. Only data within an <input> or <textarea> tag would be sent back when the form is submitted.

If you need to re-read these values, we would recommend that you save them somewhere between page displays. It's been a long time since I coded anything in PHP, but doesn't PHP have something like a $_SESSION object that lets you store data relevant to the session? Seems like that might be a good place to store values that are needed between page displays.

Re: Read subfile fields in php

Posted: Mon Jan 09, 2017 5:39 am
by amanso
Thanks you very much,

I wouldn't like use session variables but I will save the needed values in hidden input fields .