Basket reload when postage selected, show postage charge and add to total using PHP

Discussion in 'PHP' started by MattBOnline, May 27, 2011.

  1. #1
    Hi,

    I want to avoid using JavaScript in my basket. I intend to have a drop-down box with delivery options. I would like the option chosen to be stored as $postage. And when selected I want the page to reload (reload page when option clicked in drop down box), displaying the updated information given what has been selected (value of $postage is displayed and added to total).

    I realise it is possible with JavaScript but this can cause problems with people who do not enable it. I want to use just PHP.

    Can it be done?

    Matt.
     
    MattBOnline, May 27, 2011 IP
  2. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #2
    If you need to ignore the Javascript and AJAX options, then you're going to have to get the user to submit the form for postage, and then returning the page because PHP is server side. The reason Javascript works is because it is working client side.
     
    Grit., May 28, 2011 IP