Hi friends,

I am new to PHP. I have developed a form in PHP, in which a dropdown is used 
alongwith other fields. 

The drop down is bind with MySql database table, have id field for value and 
name field for display in options.

------------------------------
id      name      address
-------------------------------
1       henry     east town      
2       tom       north london
3       frank     west city
--------------------------------

I have used an "onchange" eventhandler with drop down that returns id value to 
the php page and the php code retrieves the address value against that id like 
this

function GetName()
{
 with (window.document.NewTokenEntryForm) 
 {
  if (ddlName.selectedIndex == 0) 
  {
   window.location.href = 'NewTokenEntry.php';
   
  } 
  else 
  {
window.location.href = './NewTokenEntry.php?ID=' + 
ddlName.options[ddlName.selectedIndex].value;
  }
 }
}

My question is, what should i do that my php doesn't get refresh i-e doesn't 
loose the values of other fields like textboxes etc.

How to enable view state management in php.


 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL

[Non-text portions of this message have been removed]

Reply via email to