I am using magento customer session outside magento. I have added section to signup and login from outside. But I dont know how to edit the customer accounts from outside magento. This code, I used to get customer values from customer account.
require_once ("../app/Mage.php");
umask(0);
Mage::app();
Mage::app()->loadArea('frontend');
Mage::getSingleton('core/session', array('name' => 'frontend'));
$layout = Mage::getSingleton('core/layout');
if (Mage::getSingleton('customer/session')->isLoggedIn()) {
$customer = Mage::getModel('customer/customer')->load(Mage::getSingleton('customer/session')->getId())->getData();
$address = Mage::getModel("customer/address");
$shipping = $address->load($customer['default_shipping'])->getData();
?>
<form action="" method="post" name="thisForm">
<input type="hidden" name="customerId" id="customerId" value="<?= $customer['entity_id'] ?>" />
<input type="text" name="customerEmail" id="customerEmail" value="<?= $customer['email'] ?>" />
<input type="text" name="customerFirstname" id="customerFirstname" value="<?= $customer['firstname'] ?>" />
<input type="text" name="customerLastname" id="customerLastname" value="<?= $customer['lastname'] ?>" />
<input type="hidden" name="customerDefault_billing" id="customerDefault_billing" value="<?= $customer['default_billing'] ?>" />
<input type="hidden" name="customerDefault_shipping" id="customerDefault_shipping" value="<?= $customer['default_shipping'] ?>" />
<input type="hidden" name="shippingId" id="shippingId" value="<?= $shipping['entity_id'] ?>" />
<input type="hidden" name="shippingParent" id="shippingParent" value="<?= $shipping['parent_id'] ?>" />
<input type="hidden" name="shippingFirstname" id="shippingFirstname" value="<?= $shipping['firstname'] ?>" />
<input type="hidden" name="shippingLastname" id="shippingLastname" value="<?= $shipping['lastname'] ?>" />
<input type="text" name="shippingStreet" id="shippingStreet" value="<?= $shipping['street'] ?>" />
<?php
$collection = Mage::getModel('directory/region')->getResourceCollection()
->addCountryFilter('IN')->load();
?>
<select class="txtbox" name="shippingRegion" id="shippingRegion">
<?php foreach ($collection as $region) { ?>
<option value="<?= $region['region_id'] ?>" <?php if ($region['region_id'] == $shipping['region_id']) { ?> selected="selected" <?php } ?>><?= $region['name'] ?></option>
<?php } ?>
</select>
<input type="text" name="shippingTelephone" id="shippingTelephone" value="<?= $shipping['telephone'] ?>" />
<input type="text" name="shippingRegion" id="shippingRegion" value="<?= $shipping['region'] ?>" />
<input type="text" name="shippingCity" id="shippingCity" value="<?= $shipping['city'] ?>" />
<input type="text" name="shippingPostcode" id="shippingPostcode" value="<?= $shipping['postcode'] ?>" />
<input type="text" name="shippingCountryId" id="shippingCountryId" value="<?= $shipping['country_id'] ?>" />
How to update the values in the form into Magento customer account?