Hi there,
I'm trying to create a form with checkboxes next to options, and i want the value of the checkboxes selected to be automatically entered in the custom profile field that I have created.
So for example, I will have something like this in a different vb page,
the user selects an option (only one) and hits "add to links", then I want that option, in this case vbulletin.com, to automatically enter the custom profile field that I have created, so it would look like this,
My problem, is that I have no clue how I would achieve this. does it have to be something like,
custompage.php?do=addoption&profilefieldid=5?
I use vb 3 not 3.5 if that makes any difference.
any help would be appericiated,
thank you.
actually, I figured out a way to make the form submit the entry to that field, the only thing is that it's a textarea, and I don't know how to do it with checkboxes
actually I figured out a way to do it by this code, however, this is an input field and I'm not sure how I would apply the value to a checkbox field,
PHP Code:
<div style=\"font-size:14pt\" align=center><strong>Quick Edit</strong></div>
<table align=center border=0 cellspacing=0 cellpadding=5>
<form action=\"".$_SERVER['PHP_SELF']."?u=".$row['userid']."\" method=\"post\">
<input type=\"hidden\" name=\"do\" value=\"quickedit\">
<input type=\"hidden\" name=\"edit\" value=\"1\">
<tr><td class=\"alt1\">
<b>Sponsor title:</b><br>
<input name=\"name\" size=60 value=\"".stripslashes($row['field5'])."\"><br>
<input type=\"submit\" value=\"".$vbphrase['submit']."\"> <a href=\"".$_SERVER['PHP_SELF']."?u=".$row['userid']."\">".$vbphrase['cancel']."</a>
</td></tr>
</form>
</table>