I'm working on a small PHP project where my client repairs mechanical devices for clients. Their clients fill out their web form and then would like to receive a PDF version of their Merchandise Return Label for them to mail their device back for repair.

1. Form = Done
2. Web service call to USPS = Done
3. USPS is responding with the encoded PDF version of the label in their response = Not sure what to do with it.

[A] Should I save it to the web server, and respond with a page that points to it and gives additional instructions? [B] Should I somehow trigger the PDF to be downloaded via the browser, and give additional instructions to the user?
[C] ... some other solution that I haven't thought of.

I hate the thought of option 'A' as I never want to write a file to the server. I'd like to do 'B' but I'm not quite sure how to get the flow to work properly.

Example code would be greatly appreciated.

Many thanks,
Kevin


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to