I have this form below, as selection to set a locaiton for user. However, when I click on the <li>, it post the form to the correct path, but does not take the value="name". what am I missing here, why is not taking the varibale "name". I'm I going down the right street.
Code:<form action='index.php' name="submitLocation" > <input type="hidden" name="option" value="commuinity" /> <input type="hidden" name='controller' value="deal" /> <input type="hidden" name='locationName' value="<?php echo $_POST["name"];?>" /> <input type="hidden" name="task" value="dealSetLocationCookie" /> <div id="city-option "> <img src="templates/deals/images/city_options.png" border="0" class="menu_class" /> <ul class="city_menu"> <li><a onclick="document.submitLocation.submit('atlanta');" title="atlanta" name="atlanta">atlanta</a></li> <li><a onclick="document.submitLocation.submit('chicago');" title="Chicago" name="Chicago">Chicago</a></li> <li><a onclick="document.submitLocation.submit('dallas');" title="Dallas" name="Dallas">Dallas</a></li> </ul> </div> </form>



Reply With Quote





Bookmarks