Re: [PHP] POST without POSTing

2009-10-01 Thread Ben Dunlap
> to make sure the user has properly filled out this form. So I have to > validate it. That's done in the background on the server, naturally. But > once the validating is done, it's time to send the user off to the > secure site with a payload of POST variables. At that point, the user > will ente

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Thu, Oct 01, 2009 at 04:23:46PM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > > > Okay, I've figured out how to shove the data through cURL to the > > receiving URL, but then it occurred to me that the client browser must > > go there *as well*. > > > > Wi

Re: [PHP] POST without POSTing

2009-10-01 Thread Daniel Brown
On Thu, Oct 1, 2009 at 16:14, Paul M Foster wrote: > > Okay, I've figured out how to shove the data through cURL to the > receiving URL, but then it occurred to me that the client browser must > go there *as well*. > > Will curl_exec() do that on its own, or is there a parameter I need to > feed i

Re: [PHP] POST without POSTing

2009-10-01 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-10-01 Thread Kirk . Johnson
Paul M Foster wrote on 09/30/2009 09:29:17 PM: > [PHP] POST without POSTing > > Paul M Foster > > to: > > php-general > > 09/30/2009 09:31 PM > > I have a form that collects certain info via POST. It is re-entrant, so > when the user hits the "sub

Re: [PHP] POST without POSTing

2009-10-01 Thread Tommy Pham
- Original Message > From: Daniel Brown > To: Paul M Foster > Cc: php-general@lists.php.net > Sent: Wednesday, September 30, 2009 9:58:18 PM > Subject: Re: [PHP] POST without POSTing > > On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > > > fsoc

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:24:41 -0400 Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster > wrote: > > > > However, assuming it *wasn't*, I've found the following example > > from a google search (thank goodness for google's "hinting" or I > > couldn't have found it): > > > > $fp = fso

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:41, Paul M Foster wrote: > > fsockopen() appears to be part of the standard network functions in PHP, > like the header() function. Do you mean that many hosts support the > function (as part of PHP) but don't support its use with external hosts? > Is there a way to deter

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Thu, Oct 01, 2009 at 12:24:41AM -0400, Daniel Brown wrote: > On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > > > However, assuming it *wasn't*, I've found the following example from a > > google search (thank goodness for google's "hinting" or I couldn't have > > found it): > > > > $fp

Re: [PHP] POST without POSTing

2009-09-30 Thread Lars Torben Wilson
On Thu, 1 Oct 2009 00:16:27 -0400 Paul M Foster wrote: > On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > > > On Wed, Sep 30, 2009 at 23:29, Paul M Foster > > wrote: > > > > > > I'm not sure how to do this. Please no exotic external libraries > > > my shared hosting provider does

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Thu, Oct 1, 2009 at 00:16, Paul M Foster wrote: > > However, assuming it *wasn't*, I've found the following example from a > google search (thank goodness for google's "hinting" or I couldn't have > found it): > > $fp = fsockopen("www.site.com", 80); > fputs($fp, "POST /script.php HTTP/1.0 > Ho

Re: [PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
On Wed, Sep 30, 2009 at 11:36:55PM -0400, Daniel Brown wrote: > On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > > > I'm not sure how to do this. Please no exotic external libraries my > > shared hosting provider doesn't include. RTFM will be fine; just tell me > > which Fine Manual to Rea

Re: [PHP] POST without POSTing

2009-09-30 Thread Daniel Brown
On Wed, Sep 30, 2009 at 23:29, Paul M Foster wrote: > > I'm not sure how to do this. Please no exotic external libraries my > shared hosting provider doesn't include. RTFM will be fine; just tell me > which Fine Manual to Read. Nothing too exotic at all, Paul. Check out cURL: http://php

[PHP] POST without POSTing

2009-09-30 Thread Paul M Foster
I'm sure this has been covered before, but I'm not even sure how to search in the archives for it. I have a form that collects certain info via POST. It is re-entrant, so when the user hits the "submit" button, it checks the input and does whatever sanity checks it needs to. If all is okay, it mus

Re: [PHP] post without

2004-07-07 Thread Lars Torben Wilson
Marek Kilimajer wrote: Lars Torben Wilson wrote: Josh Close wrote: So basically there is no easy way around this. What I'm trying to do is have a page return to a page that was a couple pages back with the same get info. On the second page I can do $return_url = $_SERVER['HTTP_REFERER']; to get the

Re: [PHP] post without

2004-07-07 Thread Marek Kilimajer
Lars Torben Wilson wrote: Josh Close wrote: So basically there is no easy way around this. What I'm trying to do is have a page return to a page that was a couple pages back with the same get info. On the second page I can do $return_url = $_SERVER['HTTP_REFERER']; to get the previous url. But then

Re: [PHP] post without

2004-07-07 Thread Lars Torben Wilson
Josh Close wrote: So basically there is no easy way around this. What I'm trying to do is have a page return to a page that was a couple pages back with the same get info. On the second page I can do $return_url = $_SERVER['HTTP_REFERER']; to get the previous url. But then I need to pass it on to t

Re: [PHP] post without

2004-07-07 Thread Michael Gale
Hello, Use a token and a database, I am using the following: 1. I setup a table called token_table with columns: 1. token_id - primary DB key -- auto incremented 2. token_name - actual token string 3. token_date - date created 4. token_userd - user id that

Re: [PHP] post without

2004-07-07 Thread Josh Close
/www.dailymedication.com - Everything you didn't know you needed > until you went there and said to yourself, "What did I do before I visited > DailyMedication.com?" and another part of you answered, "It does not matter. > You are here now." > > >From: Jo

Re: [PHP] post without

2004-07-07 Thread raditha dissanayake
Hi, POST is the technique where you send the data by adding it to the body of the message. In other words after sending the usual HTTP headers you continue to write on the same socket connection the data that you want to pass to the server. In get you do not write after the headers but append t

[PHP] post without

2004-07-07 Thread Josh Close
How can I post data without having it submitted from within a form? With get I can just add it to the url. Is there a php function for this? -- -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:[PHP] POST without a form

2003-01-30 Thread Daniel Leighton
I think what you want to use is CURL. I don't know if that's the canonical way to do it, but it is certainly a way. You can get more info here: http://www.php.net/manual/en/ref.curl.php At 1:28 AM +0100 on 1/31/03, arthur.chereau wrote: >Hi, > >A PHP page (main.php) loads another page

[PHP] POST without a form

2003-01-30 Thread arthur.chereau
Hi, A PHP page (main.php) loads another page (doit.php) via a form. doit.php gets the data via $_POST. Now, from a third page (other.php), I need to load doit.php with other data, but automatically, without a form. How can I redirect to doit.php and send POST data at the same time ? (as

Re: [PHP] POST without Content-Type?

2001-09-03 Thread Chris Maresca
After struggling with this for a bit, I determined that the problem was not in fact with PHP but with Apache. I wound up writing a mod_perl Apache module which took an incoming request to a particular location and parsed out the stream to find the POST content, and inserted it into the HTTP he

Re: [PHP] POST without Content-Type?

2001-08-26 Thread Chris Maresca
On Sat, 25 Aug 2001, Rasmus Lerdorf wrote: > Well, first of all, you are using an ancient version of PHP. That message > was changed from a fatal error to a warning over a year ago. Cool. Thx. I'll upgrade. Had no good reason to until now. > And if you really want to have PHP accept non-typ

Re: [PHP] POST without Content-Type?

2001-08-25 Thread Rasmus Lerdorf
Well, first of all, you are using an ancient version of PHP. That message was changed from a fatal error to a warning over a year ago. And if you really want to have PHP accept non-typed POST data, it's an obvious one-line change in main/SAPI.c -Rasmus On Sat, 25 Aug 2001, Chris Maresca wrote:

[PHP] POST without Content-Type?

2001-08-25 Thread Chris Maresca
All, I've been coding a PHP page that listens for a connection from an embedded device (a piece of hardware) that sends a POST query to Apache (and to my PHP pages...). I've having a problem that I can't seem to solve. The embedded application does not set a Content-Type header on the POST, so

Re: [PHP] Post without submit?

2001-01-26 Thread Max A. Derkachev
Hello Chris, Friday, January 26, 2001, 8:23:27 AM, you wrote: C> is there anyway to post without clicking a submit button? You can, e.g. using javascript event. on="document.forms['formname'].submit()" -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phon

Re: [PHP] Post without submit?

2001-01-25 Thread Remco Chang
. Crawford" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Thursday, January 25, 2001 6:24 PM Subject: Re: [PHP] Post without submit? > Sorry, just to be a bit clearer... Suppose you wanted to associate it with > a

Re: [PHP] Post without submit?

2001-01-25 Thread Richard S. Crawford
Sorry, just to be a bit clearer... Suppose you wanted to associate it with a link, you could do something like the following: click here to submit Hope that helps. At 03:22 PM 1/25/01 -0800, Richard S. Crawford wrote: >Without knowing exactly what you want to do, I would try something like

RE: [PHP] Post without submit?

2001-01-25 Thread DanO
e- > From: Chris [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 25, 2001 9:23 PM > To: PHP > Subject: [PHP] Post without submit? > > > is there anyway to post without clicking a submit button? > -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Post without submit?

2001-01-25 Thread Richard S. Crawford
Without knowing exactly what you want to do, I would try something like the following in JavaScript: function doSubmit() { document.form.submit() } Then associate the function with any sort of desired event. In a project of mine, I have it attached to a keypress function so that the

[PHP] Post without submit?

2001-01-25 Thread Chris
is there anyway to post without clicking a submit button?