if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'POST') {
// first, validate security token
if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'POST') {
// first, validate security token
$olddata = $abook->lookup($enick, $ebackend);
// Test if $olddata really contains anything and return an error message if it doesn't
if (!$olddata) {
$olddata = $abook->lookup($enick, $ebackend);
// Test if $olddata really contains anything and return an error message if it doesn't
if (!$olddata) {
} else {
/* Display the "new address" form */
echo abook_create_form($form_url, 'editaddr',
} else {
/* Display the "new address" form */
echo abook_create_form($form_url, 'editaddr',
/* Display the "new address" form again */
echo abook_create_form($form_url, 'editaddr',
/* Display the "new address" form again */
echo abook_create_form($form_url, 'editaddr',