TextBox Value Before Submission

Permalink
I have a registration form in Concrete5 but beforehand I need to retrieve the User Attributes.
I'm using hidden input to get the values as so:

<input type="hidden" name="akID[<?php echo UserAttributeKey::getByHandle('school')->getAttributeKeyID(); ?>][value]" value='<?php echo $_POST['full_name']; ?>'/>


However I can only get the value if I make a mistake beforehand, i.e. incorrect confirm password and then resubmit the form.

Any ideas on how to get the values without doing this?

theneptune
 
hutman replied on at Permalink Reply
hutman
The only time that you would ever have a value in this field is after there is a post, because that is the only time you are grabbing it.

Could you explain a little more what you are trying to do? Are you using the standard C5 Reigstration Form?

From what you have her it looks like you have an input somewhere on the page called full_name and you want to populate the User Attribute with the handle 'school' with that value, is that correct?