I have a frontend Form Generator form in a protected members page.
To return a hidden value (pid) into the form i have made a php script (in the Templates folder) to get the value from a database query, and return it to the form via the file::filename.php insert tag.
This works fine, and shows up in the "view source" of the form,
Code:
<input type="hidden" name="pid" value="?18" />
and the pid value is also returned in the email that the form sends to me when it is posted
But the value will not go into the database.
The record is added,including all the other insert tags I use like user::firstname etc, but the pid value that is actually inserted into pid field is the sql default value of 0.
(I have tried also using the "file::filename.php" inserttag to update other fields, thinking it was something to do with pid, but still no go.)
I can't figure why this isn't working. I would have thought that since both the source and the email show the value, then it would work.
Any insights anyone?
Bookmarks