I am using a CMS-like system, phpBMS, which defines certain fields and ways to generate a form.
Here is the sample form provided. It is possible to include javascript files and incorporate script into the form as well.
I would like to know if it is possible, within the confines of the framework I am working with, to send additional data back via POST, and to make use of it in the php form.
Going by the example there does not seem to be anywhere I could read in the new POST data and make use of it.
Ideally, I would like to modify how the POST data is treated when it comes back. However I am not sure if I can do that without modifying the code for the entire framework.
Any suggestions would be most welcome.
edit:
If I use print_r(_POST);, this is the outputI get
Array ( [chooseguests] => :08490ea8-d654-1c91-cb82-00d44a4b093b [ds-chooseguests] => Holmes, Sherlock [chooseproducts] => 75c72a6a-83d9-11df-951a-fa9c1ec271f2 [ds-chooseproducts] => Corona [quantity] => 2 [type] => cash [receiptno] => 7 [createdby] => [creationdate] => [command] => save [modifiedby] => [cancelclick] => 0 [modifieddate] => [uuid] => :4402add3-b884-43e6-04ad-c76d92ee465b [id] => )
What I want to do is take the value of [ds-chooseguests], i.e. in this instance "Holmes, Sherlock" and split it into two parts, so i can insert holmes into a lastname field and sherlock into a firstname field.
I am unsure how to go about this without making modifications to the actual framework...