need some help. Quite obviously I am new so bare with me....I am trying to pass a value (ENGLISH OR FRENCH) when the user clicks on either one of two images. If image 1, the value is english, if image 2 the value is french. Once they click the image which I use the following code (and it is probably wacked) to call the assign( ) function, it should update the $SESSION['Language'] variable but it does not....Your help is really appreciated Rick
********************************** <p><strong>Would you like to proceed in English or French?</strong></p> <p><strong><a href="<?php $_SERVER['PHP_SELF'] ?> "><img src="images/english.gif" width="193" height="35" border="0" onClick="<?php assign("English"); ?> "></a></strong></p> <p><strong><a href="<?php $_SERVER['PHP_SELF'] ?> "><img src="images/french.gif" width="193" height="35" border="0" onClick="<?php assign("French"); ?> "></a></strong></p> ********************************* HERE IS AM CHECKING JUST TO SEE WHAT THE SESSION_LANGUAGE IS HOLDING...IT IS ALWAYS FRENCH????? <?php print("<p>the value is " . $_SESSION['Language'] . "</p>\n"); ?> ******************************** <?php session_start(); if(isset($_SESSION['Count'])) // are we established? { if(isset($_SESSION['Language'])) { //header("Location: http://www.blah blah blah"); } else { } } else { $_SESSION['Count']=1; } function assign($choice) { switch($choice) { case "English": $_SESSION['Language']= "English"; case "French": $_SESSION['Language']= "French"; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php