Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JS & PHP Question

    Will the js onChange command work with php when using sessions. Currently i'm trying to refresh a page by using onChange=\"checkout.php?session=$session\"

    The reason i'm trying to refresh this page is because after options have been selected i'd like to have them visible.

    Here's the js i'm using.
    PHP Code:
    <select onChange="go(this)\">
                    <option name=\"no\" value=\"checkout.php?session=$session\"\">No</option>
                    <option name=\"yes\" value=\"checkout.php?session=$session\">Yes</option></select>
    ?> 
    Here's the php code i'm using
    PHP Code:
    if($yes){
        
    $fee $fee 2.50;
        
                } 
    Currently the page refreshes but the cart isn't visible only my header is, so i'm wondering if it may be a issue with session. I figure i'm probably missing something though.

  • #2
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My problem may be a result of sessions being used on this page. So is there anyway I could subtract from the variable $fee and have it get updated.


  •  

    Posting Permissions

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