Welcome Guest, Not a member yet? Register   Sign In
problem with 'refreshing the page'
#2

[eluser]Pascal Kriete[/eluser]
The easiest way to deal with this is to simply redirect. So your insert function really just runs a query and then redirects the user to the list of entries (or wherever they came from).
Code:
function insert()
{
    // validation and sql query
    redirect('page');
}


Messages In This Thread
problem with 'refreshing the page' - by El Forum - 11-20-2008, 03:53 AM
problem with 'refreshing the page' - by El Forum - 11-20-2008, 05:41 AM
problem with 'refreshing the page' - by El Forum - 11-21-2008, 01:12 AM
problem with 'refreshing the page' - by El Forum - 11-21-2008, 05:37 AM
problem with 'refreshing the page' - by El Forum - 11-21-2008, 09:00 AM
problem with 'refreshing the page' - by El Forum - 11-25-2008, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB