|
-
Jul 2nd, 2002, 03:46 PM
#1
Thread Starter
New Member
Help With Text Values
Hey you guys.....Im having problems with a form I've been working on.....its supposed to pass values from one text box to another that is submited to a secure server and all has been working fine untill now......i need to find a way to do letters.....untill now i was just doing numbers and totals....but now i need stuff like address and things and do not know where to start on the code for it......do any of you have any idea? heres what i have for the totals right now and they work fine
function dp(price)
{
string = "" + price;
number = string.length - string.indexOf('.');
if (string.indexOf('.') == -1)
return string + '.00';
if (number == 1)
return string + '00';
if (number == 2)
return string + '0';
if (number > 3)
return string.substring(0,string.length-number+3);
return string;
}
function calculate()
{
document.neat.chargetotal.value = eval(document.calcform.subtotal.value)
document.neat.subtotal.value = eval(document.calcform.beforetotal.value)
document.neat.shipping.value= eval(document.calcform.total3.value)
document.neat.phone.value = eval(document.calcform.phone.value)
document.neat.fax.value = eval(document.calcform.fax.value)
document.neat.scountry.value = eval(document.calcform.scountry.value)
}
Thanks for taking the time to look through that and hopefully you guys can help me well later
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|