Can't get my details to update on this form

Discussion in 'Programming' started by tyankee, Dec 22, 2010.

  1. #1
    i have a website that allows users to create free websites. But on their 'account' page, the update isn't working. If i change any details or add details and click 'update', nothing happens. Here is the page - http://www.freediskspace.com/members/account.php - and the coding for that page and I appreciate any help i can get.

    CODING
    <div class="section_content">
    <? if($msg!=''){echo $msg;} ?>

    <h3>User Details</h3>
    <center>
    <form method="post" name="frm">

    <div id="form_left">Email:</div>
    <div id="form_right"><?=$user;?></div>
    <div id="clear"></div>

    <? if($_SESSION[firstlogin]=='1'){ unset($_SESSION[firstlogin]);?><br />
    <font color="red"><b>This is your first time logging in.<br /> You should change your password to something you will remember.</b></font><br /><br />
    <? } ?>
    <div id="form_left">Password:</div>
    <div id="form_right"><input type="password" id="text" name="password" value="" /></div>
    <div id="clear"></div>

    <div id="form_left">Password Again:</div>
    <div id="form_right"><input type="password" id="text" name="password1" value="" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">Name:</div>
    <div id="form_right"><input type="text" id="text" name="full_name" value="<?=$user[full_name];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">Address:</div>
    <div id="form_right"><input type="text" id="text" name="address" value="<?=$user[address];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">City:</div>
    <div id="form_right"><input type="text" id="text" name="city" value="<?=$user[city];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">State:</div>
    <div id="form_right"><input type="text" id="text" name="state" value="<?=$user[state];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">Zipcode:</div>
    <div id="form_right"><input type="text" id="text" name="zipcode" value="<?=$user[zipcode];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">Country:</div>
    <div id="form_right"><input type="text" id="text" name="country" value="<?=$user[country];?>" /></div>
    <div id="clear"></div>
    <br />

    <div id="form_left">Phone:</div>
    <div id="form_right"><input type="text" id="text" name="phone" value="<?=$user[phone];?>" /></div>
    <div id="clear"></div>
    <br />

    <input type="hidden" name="Update" value="Update" />
    <a onclick="javascript:document.forms['frm'].submit();" href="javascript:void(0);" class="button pag_btn prev">
    <span>
    <span>Update</span>
    </span>
    </a>

    </form>
    </div>
     
    tyankee, Dec 22, 2010 IP
  2. krishmk

    krishmk Well-Known Member

    Messages:
    1,376
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    185
    #2
    This is the HTML form display.
    Plz. post the form processing script code so that others can help you.
     
    krishmk, Dec 22, 2010 IP
  3. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #3
    i'm not smart enough to know where to find it - i can't seem to find it on my server.. any help?
     
    tyankee, Dec 22, 2010 IP
  4. getbestproduct

    getbestproduct Peon

    Messages:
    140
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    is it the full source code of the file accound.php?
    there must be some code like 'include xxx.php'
     
    getbestproduct, Dec 23, 2010 IP
  5. tyankee

    tyankee Well-Known Member

    Messages:
    1,023
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    150
    #5
    no that is the complete source code for account.php
     
    tyankee, Dec 23, 2010 IP