RE: [PHP-GENERAL] $HTTP_POST_VARS help!
| From: | Martin Helie | Date: | Tue, 06 Jun 2000 01:03:21 +0000 |
| Subject: | RE: [PHP-GENERAL] $HTTP_POST_VARS help! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1105@lists.php.net to get a copy of this message | ||
Hi Chris & Kris,
thanks for your quick replies. (Kris, I will go check out the classes at the
link you sent - thanks!)
Chris, I am actually trying to do just what you mentioned -- multiple search
engine submissions. My problem is I need to change the keys in the
associative array (HTTP_POST_VARS) and send each modified set to a bunch of
pages (whether HTML or otherwise). I assumed from the start I would have to
re-read my page to modify the array and submit in a sequential fashion...
> 1. Is it possible to manually write into HTTP_POST_VARS and expect
> consistent results?
Do you mean
$HTTP_POST_VARS["foo"] = bar;
That should work, but it won't get passed on to another page, it will
simply affect the variables for the rest of the script.
That's what I thought. I just wondered if I could push the POST_VARS
afterwards somehow. But again, not a huge deal, since as you mentioned, I
can echo a bunch of <input type='hidden' bla bla>...
> 2. Is it possible to have a php page automatically Submit these (ie, user
> doesn't have to press submit button)?
No... but it is possible to have php 'echo out' some javascript that
will do this.
I am not very familiar with JavaScript, but unless I am mistaken, Submit
requires an onClick event...?
I'm still not sure what this means? Are you trying do something along
the lines of multiple search engine submissions from one page? Then
you could use several fopen()'s or file()'s to read in the different
web pages, and pass different url's to each one. If it requires post
data, you probably would need to use some javascript to create a hidden
form an submit it. Hmm.. I guess I need more details to answer that.
I would really like to avoid having to read in all the pages, as this would
make my app less
efficient.
Any other suggestions?