The statement "The problem occurs with some hidden fields with details from the recordset not being displayed,"

Is that hidden fields data contains in include file which you are talking about..

Then how you will get the recordset(DB) data in an include file, while including the file you just need to assign an id or something to fetch the data from the DB and make a form in the include file to display....

Hope it helps you

If you don't get what I said
post your related code in the forum, I will tell you

I have a php page showing records from an sql database, when the user clicks on a link they are taken to a detail page with more info etc.

All of this works fine - the issue is that I wiould like uses to be able to submit a form from this page with a file attached.

I have the form as an include, with any data being entered into the form being sent to my email - this is fine.

The problem occurs with some hidden fields with details from the recordset not being displayed,

I don't know if this makes any sense so if anybody needs further info please let me know.

Is this only one file or combined of 2 files....
* Are you getting the value for $theType, if not you need to put a default statement in your switch case
* There is no form tag in the page to submit the data
* The script is verymuch confusing, better to put functions in one page and split the code to have clear understand, even it makes better for you to debug easily

Hi Sai

Thanks for the quick response.

The code for the page with the include is below - please let me know if you need further info: