Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2005
    San Diego, CA

    Hi, I need a link to go from a selection to an order page in Modern Bill

    Basically there is a drop down panel that has:

    new, transfer, other, domain name, virtual, dedicated, etc. The client puts his domain in there and hits "go" where it points to an order page that remembers the fields the user picks. Can someone help me code this or figure this out?


    Maybe something like:

    for ($i=virtual; $i2=dedicated) , etc

    Then some sort of if box a = $i, then the setup page would be like:



    ^^ general idea of what I'm talking about. Should be in PHP.

  2. #2
    why can't you just use the switch statement based on the selection?

    An if statement would get the job done too. Send the form to something ChoosePayment.php and if would contain the code:

    PHP Code:
    if ($type transfer) {
    //change header to send to transfer page;
    } else if ($type hosting) {
    //change header to send to hosting page;
    } else if (... 

  3. #3
    Join Date
    Apr 2005
    San Diego, CA
    Hmm okay thanks. That should work just fine.

    I'm going to upload a screenshot to show you guys what I'm talking about.

  4. #4
    yes, my method above will work for this. But instead of $type you would probably be changing it to $_POST['type']

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts