I am trying to redirect to the previous page after db update using $_SERVER['HTTP_REFERER']
I am using the code below but it doesn't redirect to the previous page - it updates but it says on the same page...
<?php
// WA DataAssist Update
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) // Trigger
{
$WA_connection = $georgeconnect;
$WA_table = "carpark";
$WA_redirectURL = "".$_SERVER['HTTP_REFERER'] ."";
if (function_exists("rel2abs")) $WA_redirectURL = $WA_redirectURL?rel2abs($WA_redirectURL,dirname(__FILE__)):"";
$WA_keepQueryString = false;
$WA_indexField = "ID";
$WA_fieldNamesStr =