Click to See Complete Forum and Search --> : Overriding default values in input text-boxes - and saving them


tommy100
04-18-2007, 11:45 AM
Hi there,

I've built a tax calculator and had a query about saving the data in HTML text boxes.

I have set default values for a text box ... e.g.:

<TR>
<TD>Personal Allowance limit is </TD>
<TD>&pound;<input type=text name=PersAllow size=10 value="5225"></TD>
<TD> taxed @ </TD>
<TD><input type=text size=2 value="0" ></TD><TD>
</TR>

My aim is that is the defult values in the two input fields are changed ... I want them to be saved via a "Save" button

I know how to create a submit button:
<input type=submit Value="Submit Form">

But that does not do it for me

Is there any function that, if activated, could override the values in the input boxes with the newly entered values in the text boxes ??

Thanks

Charles
04-18-2007, 11:49 AM
You'll need some sort of scripting for this.

Most users will be most happy with a JavaScript version. However a significant number of users will be very unhappy with it, so you'll also need a server side back up. Start by figuring what sort of server side scripting you have available and then go to that forum. Once you have that running then go to the JavaScript forum and the folks there should be able to help you.