Thanks for your response.
I removed the space, but made no difference.
Prior to using DA to insert a new record, i was using DW's insert script, as per below. That worked fine and returned the 'thanks.php' page fine
<?php
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "WAATKRegistrationForm")) {
$insertSQL = sprintf("INSERT INTO member_tbl (mem_email, mem_password, mem_app_dated, mem_fname, mem_lname, mem_type, mem_active, mem_conf_id, mem_active_flag, mem_terms, mem_host, mem_browser, mem_referrer, mem_picLimit) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['mem_email'], "text"),
GetSQLValueString($_POST['mem_password'], "text"),
GetSQLValueString($_POST['mem_app_dated'], "text"),
GetSQLValueString($_POST['mem_fname'], "text"),
GetSQLValueString($_POST['mem_lname'], "text"),
GetSQLValueString($_POST['mem_type'], "int"),
GetSQLValueString($_POST['mem_active'], "int"),
GetSQLValueString($_POST['mem_conf_id'], "text"),
GetSQLValueString($_POST['mem_active_flag'], "int"),
GetSQLValueString($_POST['mem_terms'], "int"),
GetSQLValueString($_POST['mem_host'], "text"),
GetSQLValueString($_POST['mem_browser'], "text"),
GetSQLValueString($_POST['mem_referrer'], "text"),
GetSQLValueString($_POST['mem_picLimit'], "int"));
mysql_select_db($database_Crazyhomes, $Crazyhomes);
$Result1 = mysql_query($insertSQL, $Crazyhomes) or die(mysql_error());
}
mysql_select_db($database_Crazyhomes, $Crazyhomes);
$query_RegType = "SELECT * FROM mem_type WHERE mem_type.active=1";
$RegType = mysql_query($query_RegType, $Crazyhomes) or die(mysql_error());
$row_RegType = mysql_fetch_assoc($RegType);
$totalRows_RegType = mysql_num_rows($RegType);
?>
My initial problem started just as soon as i switched the DW script for the DA version. everything else on the page was untouched
The registration page completes all the tasks right through to sending the email correctly, so i'm puzzled as to why the problem is occurring at some point between the email send and executing the $GoToPage = "thanks.php"; line, when i changed the insert script!