Hi,
i've searched the forums but couldn't the right answer.
I'm building a form to update the contact details of the logged in user.
Here's the code so far :
Now i would like to be able to update the data and store it in the same record. In this case the field con_position
I've read something to use $_POST, but i don't know how to 😟
anyone has any ideas.
Kind Regards,
Mark
i've searched the forums but couldn't the right answer.
I'm building a form to update the contact details of the logged in user.
Here's the code so far :
<?php
$db =& JFactory::getDBO();
$query = 'SELECT * FROM #__contact_details WHERE id = 1';
$db->setQuery( $query );
$c_rows = $db->loadObjectList();
$c_name = $c_rows[0]->name;
$c_position = $c_rows[0]->con_position;
$c_address = $c_rows[0]->address;
?>
<div class="contentheading">edit contact</div>
<table class="cf_formtable">
<tr><td>Naam</td><td><?php echo $c_name; ?></td>
</tr>
<tr>
<td id="cf_label">Positie</td>
<td id="cf_input"><input name="con_position" type="text" class="inputbox" id="con_position" value="<?php echo $c_rows[0]->con_position; ?>">
</td></tr>
<tr>
<td id="cf_label">Beveiligingscode</td>
<td id="cf_input">{imageverification}
<a onclick="return false;" class="tooltiplink"><img src="components/com_chronocontact/css/images/tooltip.png" class="tooltipimg" width="16" border="0" height="16"></a>
<div class="tooltipdiv">Let op!: :: Beveiliginscode is hoofdlettergevoelig</div>
</td>
</tr>
<tr>
<td id="cf_label"> </td>
<td id="cf_input"><input id="cf_verzend" type="submit" name="cf_nm_verzend" value="Versturen" class="button"/></td>
</tr>
</table>
Now i would like to be able to update the data and store it in the same record. In this case the field con_position
I've read something to use $_POST, but i don't know how to 😟
anyone has any ideas.
Kind Regards,
Mark