View Full Version : JS & PHP Question

08-22-2004, 03:58 AM
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.

<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

$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.

08-22-2004, 04:40 PM
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.