Retrieving data from PHP form

Cristian Caratti
Cristian Caratti used Ask the Experts™
on
Hello,
I'm trying to send some data via phpMailer but I can get the input fields from the booking form.
I think it's because they've been formatted and I don't have any more ideas about how to do the job...

Basically I have the bform.php (form) filled up by the customer and on submit it's sent to the pre_booking-test.php file where the data is formatted and then sent to callback.php where 'raw' data's finally sent via phpMailer to the website admin. Someone has an idea how to 'parse' this raw data?
I'm attaching the files to make clear what is going on.
bform.php
pre_booking-test.php
callback.php
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Cristian CarattiSoftware developer

Author

Commented:
Hi, Thank you for your suggestion.
I can get some data this way but in this format:
orderreference=QS54625+09jhtio76875d7bffa2d1ee1054491af6285+TT+Doc+Read+-+London+2018&paymenttype=INVOICE ($data)
is it possible to parse $data?
ex.   $data = file_get_contents('php://input');

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial