Jump to content

Recommended Posts

Please forgive me if this is a duplicate request, i am new to php so this maybe a novice question. On the iis server I am using the 'sticky'  dropdown menus will not hold the values when paging back; on apache servers the code does not break and the variables hold when paging.  If I use a limited amount of options within the select tag the values hold on the return and of course I need to use more than just 4 or 5 entries under 1 variable name. Below is the code block to process the form data into a session:

session_start();
if (count($_POST) > 0){
switch($_POST['formName']){
case 'formB':
if (!isset($fv)) $fv = &$_SESSION['rgform']['nextPage'];
$_SESSION['rgform'][$_POST['formName']] = $_POST;
header("location: formC.php?page={$_POST['nextPage']}");
break;
}
} else {
$fv = &$_SESSION['rgform']['formB']; }

This is the sticky dropdown <select> <option> code, there is about twenty lines of this statement, my thinking is there is a limiting factor dealing with the amount data the varialbe will  hold that I am not aware of:

  <option value="35"<?php if ($fv['width'] == "35") echo "selected";?>>35</option>

Any help would be greatly appreciated!

MJB
Link to comment
https://forums.phpfreaks.com/topic/20171-sticky-dropdown-not-holding-values/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.