Re: Accessing data posted from a different URL
| From: | Manuel Lemos | Date: | Mon, 20 Mar 2006 22:03:11 +0000 |
| Subject: | Re: Accessing data posted from a different URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232250@lists.php.net to get a copy of this message | ||
Hello,
on 03/20/2006 06:52 PM René Fournier said the following:
> I have a script that periodically sends an email that includes form
> post to a script, which is meant to do something with the posted data.
>
> My problem is that apparently some PHP security measure is not
> permitting the externally posted data to be access via $_POST. I assume
> this is due to cross-site scripting issues, but in this case, I want to
> do just that. Any ideas?
I have no knowledge of such PHP restriction. I suspect the problem is
something else.
Make sure you have included tags like <form method="POST"
action="http://www.domain.com/full_form_processing_script_url.php">
</form> .
Some people insist on making everything XHTML compliant just they assume
that otherwise it would not be "Web standards" compliant. That is a
silly claim that only leads to all sorts of problems.
For instance, if you use method="post" because XHTML specification says
everything should be in lower case, you will have problems with some
browsers and e-mail programs that only accept POST in upper case and
fallback to GET when they find something else.
Also, keep in mind that you can't use Javascript in HTML e-mail messages.
These may not be your actual problems, but at least you have something
to start checking.
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/