Re: FN-FORUM: PHP/PDF problem
date posted 10th January 2004 11:05
Andy,
Don't know whether it's the same problem but the other day I had an
issue with PHP where I had a form which when posted called a PHP script
to send an email to the client.
On testing it the email was received twice, the first time containing
the data in the form, the second time blank.
Upon looking into things, looked at the refferer string for the page
within the logs and what was happening was the original post was
occurring, the for some reason the target page was posting itself but
without any form data.
As I have copied the form handler code from another working site, I was
totally stuck as to why this behaviour occured.
After a hour or so of fiddling, I chickened out and added code into the
form handler so that if the referrer was the form handler itself no
email was sent.
It might be worth checking referrer strings to see if somehow the 'pdf'
file is calling itself after the initial call!
HTH
Cheers,
Chris.
--
Chris Green [EMAIL REMOVED]