Jump to content

walshy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

walshy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey people, Not the best with all this stuff, but i have cPanel and that and if i select to Password Protect a Directory and add the users blah blah.. To log in you need to go to: http://domain.com/protecteddirectory/ and that little pop-up comes up. How can i make a Form which is at like http://domain.com/login.html and with the data entered in that login through there instead of having the annoying pop up? If any one knows just let me know... Cheers, Evan
  2. Hey everyone! Sorry, this may seem so stupid of me but i have a signup form With the code bellow, it adds the amount up and says how much to pay <?php if ($_POST['plan'] == "Standard") { $sum = $sum+5; } elseif ($_POST['plan'] == "Advanced") { $sum = $sum+10; } elseif ($_POST['plan'] == "Ultimate") { $sum = $sum+15; } elseif ($_POST['plan'] == "domain") { $sum = $sum+0; } else { echo "An error has occured"; } if ($_POST['domain_what'] == "transfering") { $sum = $sum+20; } elseif ($_POST['domain_what'] == "transfer1") { $sum = $sum+20; } elseif ($_POST['domain_what'] == "updating") { $sum = $sum+0; } elseif ($_POST['domain_what'] == "regestering") { $sum = $sum+20; } elseif ($_POST['domain_what'] == "registering1") { $sum = $sum+50; } else { echo "An error has with the web-calculator, please submit this application and contact sales for the total price."; } $sum = $sum+intval(substr(strstr($_POST['bandwidth'],"$"),1)); if ($_POST['StaticIP'] == "Yes") { $sum = $sum+4.99; } echo "<b>$".$sum."</b>/Monthly. <br>If the amount is $0 you will recieve an invoice because you selected Yearly. Please hold on your payment."; ?> I want it to be able to multiply the amount by 12 if the payment cycle is Yearly instead of Monthly. a example is: [a href=\"http://gewebhosting.net/signup/index.html\" target=\"_blank\"]http://gewebhosting.net/signup/index.html[/a] if you select Monthly the amount will show up Monthly, and if you select Yearly to pay it still comes up monthly. So with that code i need to add a bit telling it to multiply the total amount by 12 if the payment cycle is yearly. Any ideas? All help is appreciatted. Evan.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.