Results 1 to 4 of 4
Thread: Need Help Please!!!
-
09-12-2002, 06:25 AM #1Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- Los Angeles, CA
- Posts
- 33
Need Help Please!!!
i was wondering how i can make a script that when the customer clicks the buy button for my webhosting accounts:
1. a new browser pops up and performs these functions:
2. Asks if the user needs to purchase a domain name
- if yes: go to my enom site or script and makes purchase
then goes back to the purchase form.
-if no: continues to the purchase form.
If it helps, i'm using h-sphere as my control panel. Aparently they have their own method using opensrs but i don't want to use them because i already filled my enom account with funds. Thank you in advanced for your help.SevenFourteen
http://www.sevenfourteen.com
sales@sevenfourteen.com
-
09-12-2002, 06:44 AM #2Disabled
- Join Date
- Aug 2002
- Posts
- 1,216
This should get you started:
PHP Code:<?php
switch ($action) {
case "yes":
print ""; // print out rest of order form if he clicks "yes", I have a domain.
break;
case "no":
print ""; // print's out domain order form, if he clicks no, I dont have a domain.
break;
default:
print ""; // print's out the defualt.
}
?>
-
09-12-2002, 07:25 AM #3Junior Guru Wannabe
- Join Date
- Aug 2002
- Location
- Los Angeles, CA
- Posts
- 33
Thanks for the start...i'm really new to php. can u show me how i can make it so this opens up in a new browser?
SevenFourteen
http://www.sevenfourteen.com
sales@sevenfourteen.com
-
09-12-2002, 08:04 AM #4Web Hosting Master
- Join Date
- May 2002
- Location
- UK
- Posts
- 2,997
The popup would have nothing to do with PHP, it's either HTML or JavaScript. PHP is a server side language
www.javascript.com is a good starting point.