Log in

View Full Version : This should be easy, but im pulling my hair out!


Stangsta
02-06-2006, 04:28 AM
Ok, for example profile field#3.

I would like to make it appear in my postbit as a radio button with a submit button.

Well, I got that part down...NO PROBLEM!

The problem is that after submitting, it DOES change the option in the userCP/edit profile, but it DOES NOT reflect that on the postbit. It will go back to not having either selected in the radio button. I would like it to retain the last choice by that user in the postbit, just as it does in the userCP/edit profile. It works just fine there, but not in the postbit!

HELLLLLLLLLLLLP!!!!

Heres what im using:
<fieldset class="fieldset">
<legend>Style</legend>
<table cellpadding="0" cellspacing="3" border="0" width="100%">
<tr>
<td>
</td>
</tr>

<tr>
<td>
<label for="rb_cpf_field3_1"><input type="radio" name="userfield[field3]" value="1" id="rb_cpf_field3_1" />Style 1</label>

<label for="rb_cpf_field3_2"><input type="radio" name="userfield[field3]" value="2" id="rb_cpf_field3_2" />Style 2</label>
</td>
</tr>
</table>
</fieldset>
<input type="hidden" name="userfield[field3_set]" value="1" />

Marco van Herwaarden
02-06-2006, 06:35 AM
And how do you write that change back to the database?

Stangsta
02-06-2006, 02:13 PM
And how do you write that change back to the database?
Like this:

<input type="submit" class="button" value="Save" accesskey="s" />
</form>

Stangsta
02-07-2006, 04:31 PM
Bump!!!

Someone HAS to know this!

Stangsta
02-09-2006, 06:11 AM
With all the knowledge on this board....im dissapointed :(