Jump to content
3 posts in this topic

Recommended Posts

Hi,

 

I'm designing a site for a friend who would like to be able to generate a rough quote for the work he does dependent on 3 or 4 variables. Does anyone know of a script (php preferably - I'm on a Linux server) that would do this? I've googled a bit but all the scripts seem to be "quotations" generators - not what I'm after,

 

TIA,

 

The Baron.

Link to comment
https://www.insanelymac.com/forum/topic/66299-online-quote-generator/
Share on other sites

So you're looking for a drop-and-go script?

 

3 or 4 variable scripts aren't too difficult to write... just a bit of boolean and you're set.

 

If you know how to write some PHP (and it wouldn't have to be advanced), you can pull this off.

 

Provide some more information... we might be able to help out.

  • 1 month later...

Maybe something like this could help

 

<?php

// Start Script. Define Variables
$1 = 10;
$2 = 100;
$3 = 40;
$final = 0;

// If so and so is true add so and so

if ( $_POST['check_box1'] == 1 )
{
$final + $1;
}

if ( $_POST['check_box2'] == 1 )
{
$final + $2;
}

if ( $_POST['check_box3'] == 1 )
{
$final + $3;
}

// Choke out the final value
echo $final;

?>

 

This is just very basic. If we had more information then we can assist more

×
×
  • Create New...