Re: Re: postback for php

From: Date: Wed, 18 Oct 2006 15:52:40 +0000
Subject: Re: Re: postback for php
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-243302@lists.php.net to get a copy of this message
Miles Thompson wrote:
At 11:48 AM 10/18/2006, M.Sokolewicz wrote:
Ross wrote:
Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? R.
please explain, in details, what it is you're looking for. "postback for php - a function to do this" doesn't mean squat to most people. Please EXPLAIN. - tul
Yes, not a helpful description. Maybe he means a callback function which would do something like
    echo '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>';
and he may have to pass a variable string. M. First approximation:
Postback is an ASP.NET mechanism for running server side code as part of a page execution cycle when the user clicks a control which has been set up for this. "<a href="'. $_SERVER['PHP_SELF']..." is an example. A more general example in the PHP world is creating a form with the action referring to the same page. At the beginning of the page, one checks for an action field the value of which is used to dispatch to some code relevant to the action. Both systems can yield similar effects. For more info, just Google "postback".

« previous php.general (#243302) next »