If you look at the code for an insert, you will see that the redirect URL is created before the record has been inserted. It cant use the ID of the record that will be inserted in the redirect, because that value cannot be know yet, it can only be known after the record inserts.
If you look further down the code, you will see this line after the code to perform the insert:
$_SESSION[$WA_sessionName] = mysql_insert_id();
This code stores the inserted records ID into a session variable.
further up the code, you will see a line that sets the $WA_sessionName variable, it will look something like:
$WA_sessionName = "WADA_Insert_visitors";
this sets the name that will be used for the session:
$_SESSION['WADA_Insert_visitors']
if you want to go directly to the update page from the insert, you will need to leave the redirect in the insert behavior blank, then add code after the insert to perform the redirect using the newly created session variable in the URL.
Add this code just after the insert record behavior.
<?php
if($_SERVER['REQUEST_METHOD'] == "POST") {
header("Location: ads_Update.php?id_ad=".$_SESSION[$WA_sessionName]);
}
?>