how to retain previous value of textbox and input new value in same textbox.please help me .i am tyring to make a calculator programm in php only withh all buttons etc .

while making calculator it is required and please help me..

well not quite sure what u mean but if u want to retain inputed value and at thesame time input another value without loosing previous value then u need to create a hidden field and for every input you entered u submit the form from there u can always grad your values. And why not provide two seperate input field instead of one?

@hakeemtunde ,actually in calculator prigram we want only one textbox and put values and operator in same textbox anc after calculation i.e. result is also entered in same textbox so...there is again and again requirement of same textbox. and retaining value of previous to calculate result.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.