MM_jumpMenu

I have a table with a selectable number of lines using MM_jumpMenu. The problem is that if a user enters data into the table then adds another line, all data is lost in the refresh.
If it is possible remedy this or another option will be greatly appreciated.

Thanks

THE SELECT BUTTON

<? for($i=1;$i<=50;$i++) { if($_GET["Line"] == $i) { $sel = "selected"; } else { $sel = ""; } ?> ?Line=<?=$i;?>" <?=$sel;?>><?=$i;?> <? } ?>

THE TABLE

<? $line = $_GET["Line"]; if($line == 0){$line=1;} for($i=1;$i<=$line;$i++) { ?>

HTTP is stateless. This means when you refresh a page, everything on the previous page is gone, the next page will not remember anything about the previous one and so on etc.

You can make the browser ‘remember’ using sessions or cookies.
Alternately you can submit the form using ajax without leaving the page, thus retaining your settings.

see here for more info:
jquery .post()
php sessions

Red. :wink:

Sponsor our Newsletter | Privacy Policy | Terms of Service