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

Reply via email to