Thought I had
Thanks for the reply, You are on the right track - I thought I had the 'State Code' in the value field. Because of the Spry - it is a little different to what I am used to.
The usual field (in display mode) for Initally selected is not present.
When the page loads the input still displays 'Choose a State" instead of the actual state code.
Here is the first part of the code
<select name="UserState" id="UserState" title="<?php echo(ValidatedField("usersProfile","UserState")) ?>" onBlur="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" onChange="if (document.getElementById('stateServerValidation')) document.getElementById('stateServerValidation').style.display='none'" >
<option value="" selected="selected" <?php if (!(strcmp("", (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>>Choose a state</option>
<option value="N/A" <?php if (!(strcmp("N/A", (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>>N/A</option>
<option value="NSW" <?php if (!(strcmp("NSW", (isset($_GET['valid'])?ValidatedField("usersProfile","UserState"):$row_WAATKusers['UserState'])))) {echo "selected=\"selected\"";} ?>>New South Wales</option>