Link to home
Start Free TrialLog in
Avatar of Cristian Caratti
Cristian Caratti

asked on

Retrieving data from PHP form

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
Avatar of Php_expert
Php_expert
Flag of India image

Avatar of Cristian Caratti
Cristian Caratti

ASKER

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');
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.