Re: function to post data

From: Date: Thu, 07 Feb 2002 07:52:41 +0000
Subject: Re: function to post data
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-83818@lists.php.net to get a copy of this message
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:val@zliypes.com.ua ----- Original Message ----- From: "Lars Torben Wilson" <torben@php.net> To: <webmaster@blanktv.com> Cc: <php-general@lists.php.net> 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 <torben@php.net> > 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 > >

« previous php.general (#83818) next »