Re: message to user after complete POST

From: Date: Thu, 05 Sep 2013 00:38:30 +0000
Subject: Re: message to user after complete POST
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-322041@lists.php.net to get a copy of this message
hey, if you are just trying to give the user a feedback about the information sent, there is a Global variable for this, and it's the $_POST. When you receive the information on the script you called on the "Action" atribute of the form, via the $_POST global variable, you will test the information end echo the feedback on that script. Note that, unless you are using ajax (jquery, or any other javascript ajax method), when you post a form, you will be intantly redirected to the "action" path. then you have nothing to do in the source page. hope you got it. 2013/9/4 iccsi <inungh@gmail.com> > I have a POST form and action itself like following > <form name="MyForm" id="MyForm" method="POST" > action="index.php"> > </form> > > I want to show success message when POST complete or error message if > there is any. > I would like to know are there any property or global variable I can check > to show message to users. > If not, it seems that the only solution is jQuery, since it has success > function that jQuery call after POST. > > Your help and information is great appreciated, > > > Regards, > > Iccsi, > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#322041) next »