Using CAutoComplete to display one value and submit another

Comparing #6 with #7

Revision #7 was created by jonah jonah on Aug 30, 2009, 11:24:11 PM.

removed die()

Content

[...]
$returnVal .= $userAccount->getAttribute('name').'|'
.$userAccount->getAttribute('user_id')."\n";
}
echo $returnVal;
}
       die();
 
}
```
There are a few things to notice here:

<ol>
<li>A pipe "|" delimiter is used and natively recognized by jQuery to split a returned item into parts</li>
[...]