Here is the problem I'm in and been searching my answers here on the boards. Stuff I found were helpful and it helped me a lot, but I am stuck on the part where updating my data I submit on to save to an existing table, seems like it doesn't happen. Profile plugin populates everything and I have three extra fields that are blank for the person going to the form can update later and put it in a existing record. The form is connected to the database and saving is on.
I do have cf_id as the primary key and added this to the form. Profile is set to edit 'yes'.
Form is displayed from my view details link on ChronoConnectivity in a light box. So I guess I'm still missing something that makes the record be updated?
I do have cf_id as the primary key and added this to the form. Profile is set to edit 'yes'.
<input name="cf_id" value="" type="hidden" />
<input name="cf_id" value="" type="hidden" />
<!--This part pulls data from jos_legion_members -->
<div class="form_item">
<div class="form_element cf_heading">
<h1 class="cf_text">Full User Information</h1>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Username:</span> {user_name}
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Character:</span>
{Character}
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Age:</span>{age} </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Time Zone: </span>{time_zone} </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">How {user_name} heard of LEGION:</label>
<textarea class="cf_inputbox" rows="3" id="text_4" title="" cols="30" name="text_4" >{hear_legion}</textarea>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">{user_name} prior guilds:</label>
<textarea class="cf_inputbox" rows="3" id="text_6" title="" cols="30" name="text_6" >{guild_prior}</textarea>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">What {user_name} believes is LEGION material:</label>
<textarea class="cf_inputbox" rows="3" id="text_7" title="" cols="30" name="text_7" >{legion_material}</textarea>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">PvP Grade:</span> {PvP_grade}</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">{user_name} has read LEGION's code.</span> </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">{user_name} is aware of LEGION's Vent and Forums activity condition.</span> </div>
<div class="cfclear"> </div>
</div>
<!-- This is the blank fields that the user needs to edit later on. -->
<div class="form_item">
<div class="form_element cf_heading">
<h1 class="cf_text">Recruitment Inspection</h1>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">On week one {user_name} visited forums on:</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="check_forums_on_date1" name="check_forums_on_date1" type="text" value='<?php echo $d->check_forums_on_date1; ?>' />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">On week two {user_name} visited forums on:</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="check_forums_on_date2" name="check_forums_on_date2" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">On week three {user_name} visited forums on</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="check_forums_on_date3" name="check_forums_on_date3" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Vent inspection date 1:</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="on_vent_while_ingame1" name="on_vent_while_ingame1" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Vent inspection date 2: :: If not on vent while in-game make sure they had valid reasons for it. If reasons are not valid put the word '"FAIL" in the box without the quotes.</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Vent inspection date 2:</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="on_vent_while_ingame2" name="on_vent_while_ingame2" type="text" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Vent inspection date: :: If not on vent while in-game make sure they had valid reasons for it. If reasons are not valid put the word '"FAIL" in the box without the quotes.</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width: 150px;">Additional comments, concerns, and/or recommendations:</label>
<textarea class="cf_inputbox" rows="3" id="comments title="" cols="30" name="comments"></textarea>
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Additional comments, concerns, and recommendations: :: When making a comment, concerns, and/or recommendations, please put your username on one line only in this format: ---User Name---</div>
</div>
<div class="cfclear"> </div>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" type="submit" onclick="window.parent.document.getElementById('sbox-window').close();"/>
</div>
<div class="cfclear"> </div>
</div>
Form is displayed from my view details link on ChronoConnectivity in a light box. So I guess I'm still missing something that makes the record be updated?