Need a new web host or having a problem with a script? Tips and advice on the best way to design, build and maintain your most valuable asset - your website!

Adding tools to webpages?

macdee1823
Posts: 99
Joined: 25 Jan 07
Trust:

Adding tools to webpages?

Hi,

Wow, not been on here for ages, how is everyone? Looking forward to the new and improved affilorama, can't wait!

Just thought I would post a quick question....

I'm in the middle of designing a page and I need a calorie calculator like the one shown here - http://www.muscleandstrength.com/tools/ ... lator.html

I don't know if you can get a peice a code from somwhere for this or whether it needs to be coded in javascript. If anyone knows how to get one of these on your site I would be very grateful.

Thanks in advance ;),

Wes
  • 0
Follow me on Twitter - http://twitter.com/WesleyMcDermott | Add me on Facebook - http://profile.to/wesleymcdermott/ | Connect on Linkedin - http://uk.linkedin.com/in/theseoconsultant
 
PremiumMember
sean06
Posts: 1004
Joined: 16 Jun 06
Trust:
hey Wes,

Would be best to hire a programmer. But I know a merchant who might be willing to create tools like that for his affiliates :)
  • 0
www.SixDayWeekend.com
Free Training Videos reveal how I make 6 figures while travelling the world
 
macdee1823
Posts: 99
Joined: 25 Jan 07
Trust:
Hey Sean,

I don't really want to hire a programmer, just a bit of script or something will do me if it thats all it needs.

If the merchant you're talking about is Australian and loves crappy sports then I'm all ears LOL.

Cheers,
Wes
  • 0
Follow me on Twitter - http://twitter.com/WesleyMcDermott | Add me on Facebook - http://profile.to/wesleymcdermott/ | Connect on Linkedin - http://uk.linkedin.com/in/theseoconsultant
 
PremiumMember
chatyak86
Posts: 1085
Joined: 17 Jun 06
Trust:
sean06 wrote:hey Wes,

Would be best to hire a programmer. But I know a merchant who might be willing to create tools like that for his affiliates :)


LOL


Wes, you should check out hiring some programmers for things like this. It isn't expensive really - although that's relative as to how much you can afford.
  • 0
gcaine
Posts: 7
Joined: 04 Apr 08
Trust:
It would be pretty simple with PHP, just collect the data from the form, do the calculation and display it.

Here's a simple example using calculate.php as the page that displays the result.

Here's the form
<p>
<form method="post" action="calculate.php">
<p>Weight <input type="text" id="weight" name="weight" /></p>

<p>Height <input type="text" id="height" name="height" /></p>

<p><input type="submit" id="submit" name="submit" value="Submit"></p>
</form>
</p>

Put this in calculate.php

<?php
foreach ($_REQUEST as $key=>$value){
${$key}=$value;
}
$total=$weight*$height;
echo "Your total is $total";
?>

It's a simple example, but you get the idea
  • 0