Re: [PHP] function to post data

2002-02-07 Thread Erik Price


On Wednesday, February 6, 2002, at 11:06  PM, Lars Torben Wilson wrote:

 On Wed, 2002-02-06 at 19:32, obo wrote:
 is there a command in php to post form data to a script?

 example:

 i have a form. once the submit is hit i use php to check the values. if
 the values are ok i then call a function
 to post the data.

 thanks.

 This is a fairly common request. Your best bets are to search for
 'posttohost' in the mailing list archives, or just use cURL:

   http://www.php.net/curl

 ...which will more than likely satisfy any posting cravings you
 may have. :)


I don't mean to butt in here, I'm just a bit confused.  I thought that 
the poster (obo) was asking how to submit form variables using POST.  
For the purpose of doing more work with these variables, from a (PHP) 
script.  Is obo asking something different here?  I read about 
posttohost yesterday (someone provided a link) but I didn't see the 
purpose behind this process.  What is it for?


Erik





Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] function to post data

2002-02-07 Thread Jason Wong

On Thursday 07 February 2002 22:45, Erik Price wrote:

 I don't mean to butt in here, I'm just a bit confused.  I thought that
 the poster (obo) was asking how to submit form variables using POST.
 For the purpose of doing more work with these variables, from a (PHP)
 script.  Is obo asking something different here?  I read about
 posttohost yesterday (someone provided a link) but I didn't see the
 purpose behind this process.  What is it for?

It's for server-side posting of form data to (usually) another 
webpage/website.


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
The computer is to the information industry roughly what the
central power station is to the electrical industry.
-- Peter Drucker
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] function to post data

2002-02-06 Thread obo

is there a command in php to post form data to a script?

example:

i have a form. once the submit is hit i use php to check the values. if
the values are ok i then call a function
to post the data.

thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] function to post data

2002-02-06 Thread val petruchek

Or use such method:
1. create form with $PHP_SELF as action
2. in the beginning of php script check if form was posted and if was check
it for correctness
3. if form is ok, save post data and then redirect user with Header(to
certain page)
4. if form is bad, stay at this script and display both: error messages and
form fields

hope that helps; at least it helped me greatly, especially in saving my time

Valentin Petruchek (aki Zliy Pes)
*** Cut the beginning ***
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
- Original Message -
From: Lars Torben Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 6:06 AM
Subject: Re: [PHP] function to post data


 On Wed, 2002-02-06 at 19:32, obo wrote:
  is there a command in php to post form data to a script?
 
  example:
 
  i have a form. once the submit is hit i use php to check the values. if
  the values are ok i then call a function
  to post the data.
 
  thanks.

 This is a fairly common request. Your best bets are to search for
 'posttohost' in the mailing list archives, or just use cURL:

   http://www.php.net/curl

 ...which will more than likely satisfy any posting cravings you
 may have. :)


 Torben

 --
  Torben Wilson [EMAIL PROTECTED]
  http://www.thebuttlesschaps.com
  http://www.hybrid17.com
  http://www.inflatableeye.com
  +1.604.709.0506


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php