Quote generator for webdesign company

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
Lyrikal_J
Registered User
Posts: 287
Joined: Thu Nov 25, 2004 5:50 pm
Location: London

Quote generator for webdesign company

Post by Lyrikal_J »

Im making a Quote generator.

Ive made the form, but a little trouble with the PHP part.

I could use this method:
<?php
if(isset($_POST['style']) == 'Budget') {

if ($_POST['style'] == 'PHP' && $_POST['due'] == '1 week' && $_POST['pages'] == '3-10')
{
echo 150 + 150 + 50 / 3;
}

elseif ($_POST['style'] == 'PHP' && $_POST['due'] == '1 week' && $_POST['pages'] == '10-20')
{
echo 150 + 150 + 100 / 3;
}

elseif ($_POST['style'] == 'PHP' && $_POST['due'] == '1 week' && $_POST['pages'] == '20+')
{
echo 150 + 150 + 200 / 3;
}

}

And so on...

?>


but it will take very very long to program each option so is there an easier method to do this?
Merlin Sythove
Registered User
Posts: 2339
Joined: Tue Mar 16, 2004 7:42 am

Post by Merlin Sythove »

Need custom work done? Pimp My Forum!
Post Reply

Return to “[2.0.x] MOD Writers Discussion”