Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Adding Mathmatical Calculations to Website
Old 03-26-2010, 11:01 PM Adding Mathmatical Calculations to Website
Junior Talker

Posts: 1
Name: DW
Trades: 0
Hi

I would like to add a section to my website that provides clients with an instant quote. They punch in several variables and the they would be provided with a quote. Several of my competitors are using a similar type of table. I copied the source code they are using to try to figure how to make something similar on my site but when I paste in the html code for some reason it doesn't work. Any help, suggestions or comments would be greatly appreciated.

Here is the code:

HTML Code:
<h2>Instant Quote</h2>  
              <form name="balance" method="post">
               <table id="calc">
               <tr>
                       <td class="right">Current Unpaid Balance: </td>
            <td class="field">
                 <input type="text" name="balance" value="" size="18" ></td>
        </tr>
            <tr>
            <td class="right">Current Value of Property:</td>
            <td class="field">
                <input type="text" name="price" value="" size="18"></td>
        </tr>
            <tr>
            <td class="right">Interest Rate (%):</td>
            <td class="field">
                <input type="text" name="interest" value="" size="18" class="inputField"></td>
        </tr>
         <tr>
            <td class="right">Payment History:</td>
            <td>
                 <select name="paymentHistory">
                     <!-- <option value="0.99"  >Perfect, Never Late</option>-->
                                      <option value="0.95" selected="true" >Basically a good Payor</option>
                                      <option value="0.68"  >Behind/Defaulted</option>
                                  </select>
                  <tr>
            <td class="right">&nbsp;</td>
            <td class="field"></td>
        </tr>
                  <tr>
               <td class="right" valign="top">WE WILL PAY =</td>
            <td height="100px" valign="top"><div id="payout"></div></td>
         </tr>
                                         <tr>
             <td class="right">
                 <input class="button" type="submit" name="submit" value="Calculate"></td>
             <td>
                 <input class="button" type="submit" name="submit" value="Reset"></td>
         </tr>
                              </table>
                          </form>
                              </div>
                 </div> <!-- end content -->

Last edited by chrishirst; 03-27-2010 at 10:22 AM..
loansurfer is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2010, 07:49 AM Re: Adding Mathmatical Calculations to Website
voxink's Avatar
Novice Talker

Posts: 13
Name: Adrian
Trades: 0
It doesn't work because you have only the client code (that html code you provided).

When you press the Calculate button, the entire form is submitted to a server side code and this server side code makes all the calculations.

This server side code cannot be copied in the same way you copied the html.
voxink is offline
Reply With Quote
View Public Profile
 
Old 03-29-2010, 03:41 AM Re: Adding Mathmatical Calculations to Website
Novice Talker

Posts: 4
Trades: 0
What voxink means is: this is probably not a job you want to do in html.
I would recommend you google your question + php/.net (what ever platform your site is built with) and try to find an example you can implement on your site, any way, I don't think that this is a simple copy&paste job.
mayflower is offline
Reply With Quote
View Public Profile
 
Old 04-01-2010, 02:57 AM Re: Adding Mathmatical Calculations to Website
Experienced Talker

Posts: 45
Trades: 0
Because there is no server page which takes the value of your client page. link this page first. after that you will do this.
__________________

Please login or register to view this content. Registration is FREE
printrobin is offline
Reply With Quote
View Public Profile Visit printrobin's homepage!
 
Old 04-01-2010, 10:22 AM Re: Adding Mathmatical Calculations to Website
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I am doing something similar for a client's site I'm working on. Once I get it up and running I'll link it here so you have an example.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Reply     « Reply to Adding Mathmatical Calculations to Website
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21235 seconds with 12 queries