[PHP] Sending post data from a script

2005-08-05 Thread Paul Nowosielski
Hi All, I'm trying to setup a PHP script that will send a POST data request to a web form. The script needs to be automatic and not driven by a web form. For example. I have a cron script that runs every 15 minutes. The cron script calls my php script on the server and sends the important data

RE: [PHP] Sending post data from a script

2005-08-05 Thread Jay Blanchard
[snip] I'm trying to setup a PHP script that will send a POST data request to a web form. The script needs to be automatic and not driven by a web form. For example. I have a cron script that runs every 15 minutes. The cron script calls my php script on the server and sends the important data to

Re: [PHP] Sending post data from a script

2005-08-05 Thread Jochem Maas
Paul Nowosielski wrote: Hi All, I'm trying to setup a PHP script that will send a POST data request to a web form. The script needs to be automatic and not driven by a web form. For example. I have a cron script that runs every 15 minutes. The cron script calls my php script on the server and

[PHP] Sending POST-data

2003-07-25 Thread Simon Fredriksson
I'm making a search-engine script for my site that redirects users to other search engines. Point is that on the website, there's a drop-down box with some engines and one textfield. 1. User enter the search query. 2. User selects which engine to use. 3. User submits. 4. PHP scripts checks

Re: [PHP] Sending POST-data

2003-07-25 Thread Chris Shiflett
--- Simon Fredriksson [EMAIL PROTECTED] wrote: Now the thing is that some of these engines use POST method, which makes it a bit harder to redirect the query. For those who use GET I just have to use something like header(Location: http://somewnine.com/query=$query;); So, does anyone have

Re: [PHP] Sending POST-data

2003-07-25 Thread Marek Kilimajer
Output the required form with hidden fields from your script and use onload=document.forms[0].submit(); Simon Fredriksson wrote: I'm making a search-engine script for my site that redirects users to other search engines. Point is that on the website, there's a drop-down box with some engines

Re: [PHP] Sending POST-data

2003-07-25 Thread John Hicks
Simon-- Why not follow the KISS approach? Generate the GET or POST directly from the client. No PHP or server-side processing needed. --John On Friday 25 July 2003 10:09 am, Simon Fredriksson wrote: I'm making a search-engine script for my site that redirects users to other search engines.