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
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
ASKER
Hi, Thank you for your suggestion.
I can get some data this way but in this format:
orderreference=QS54625+09j htio76875d 7bffa2d1ee 1054491af6 285+TT+Doc +Read+-+Lo ndon+2018& paymenttyp e=INVOICE ($data)
is it possible to parse $data?
ex. $data = file_get_contents('php://i nput');
I can get some data this way but in this format:
orderreference=QS54625+09j
is it possible to parse $data?
ex. $data = file_get_contents('php://i
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers 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.
Please check below post.
https://stackoverflow.com/questions/8893574/php-php-input-vs-post