Div tartalom, lapozás probléma
2008-11-26T15:37:37+01:00
2008-11-29T16:33:58+01:00
2022-07-30T08:47:34+02:00
levikolyok
Helo

Van egy scriptem amivel egy div-be töltöm az aktuális tartalmat:

<script type="text/javascript"> /*********************************************** * Dynamic Ajax Content- C Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) var loadedobjects="" var rootdomain="http://"+window.location.hostname var bustcacheparameter="" function ajaxpage(url, containerid){ var page_request = false if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest() else if (window.ActiveXObject){ // if IE try { page_request = new ActiveXObject("Msxml2.XMLHTTP") } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") } catch (e){} }} else return false page_request.onreadystatechange=function(){ loadpage(page_request, containerid) } if (bustcachevar) //if bust caching of external page bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime() page_request.open('GET', url+bustcacheparameter, true) page_request.send(null) } function loadpage(page_request, containerid){ if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) document.getElementById(containerid).innerHTML=page_request.responseText } function loadobjs(){ if (!document.getElementById) return for (i=0; i<arguments.length; i++){ var file=arguments[i] var fileref="" if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding if (file.indexOf(".js")!=-1){ //If object is a js file fileref=document.createElement('script') fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", file); } else if (file.indexOf(".css")!=-1){ //If object is a css file fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); }} if (fileref!=""){ document.getElementsByTagName("head").item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page }}} </script>

Na irtam egy összetett keresőt, amiben van lapozás is.
Az a gon, hogy az első oldalt megjeleníti szépen, viszont már a többi oldalon nincs eredmény. Valamiért mintha ott már elvesztené a postolt adatokat.

form:
<? include "nyelv.php"; include "kereso_szemelyauto_feldolgoz.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="tabcontent.js"> /*********************************************** * Tab Content script v2.2- C Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ </script> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <div class="keresohatter"> <table width="827" border="0" cellspacing="0" cellpadding="0" id="keresodoboz"> <tr> <td width="148"><? print $lang['orszagn']?></td> <td width="134"><? print $lang['gyartmany']?></td> <td width="114"><? print $lang['tipus']?></td> <td><strong><? print $lang['vetelar']?></strong> <? print $lang['tol']?></td> <td width="200"><strong><? print $lang['uzem']?></strong></td> </tr> <tr> <td width="148" valign="bottom"><select name="orszag" class="list"> <option><? print $lang['romania']?></option> </select></td> <td width="134" valign="bottom"><select name="gyartmany" class="list"> <option><? print $lang['osszes']?></option> <option>Egyéb</option> </select></td> <td width="114" valign="bottom"><input type="text" name="tipus" class="field100"/></td> <td valign="middle"><input type="text" name="ar1" class="field80"/> - <input type="text" name="ar2" class="field80"/> <select name="pn" class="list"> <option>Ron</option> <option>Euro</option> </select></td> <td width="200" valign="bottom"><strong> <input type="text" name="uzemanyag" class="field80" /> </strong></td> </tr> <tr> <td height="34" valign="bottom"><strong><? print $lang['evjarat']?></strong> <? print $lang['tol']?></td> <td valign="bottom"><strong><? print $lang['ajtok']?></strong></strong></td> <td valign="bottom"><strong><? print $lang['allapot']?></strong></td> <td valign="bottom"><strong><? print $lang['futkm']?></strong> <? print $lang['tol']?></td> <td valign="bottom"><strong><? print $lang['henger']?></strong> <? print $lang['tol']?></td> </tr> <tr> <td><select name="evjarat1" class="list1"> <option>mindegy</option> <option>2008</option> <option>2007</option> <option>2006</option> <option>2005</option> <option>2004</option> <option>2003</option> <option>2002</option> <option>2001</option> <option>2000</option> <option>1999</option> <option>1998</option> <option>1997</option> <option>1996</option> <option>1995</option> <option>1994</option> <option>1993</option> <option>1992</option> <option>1991</option> <option>1990</option> </select> - <select name="evjarat2" class="list1"> <option>mindegy</option> <option>2008</option> <option>2007</option> <option>2006</option> <option>2005</option> <option>2004</option> <option>2003</option> <option>2002</option> <option>2001</option> <option>2000</option> <option>1999</option> <option>1998</option> <option>1997</option> <option>1996</option> <option>1995</option> <option>1994</option> <option>1993</option> <option>1992</option> <option>1991</option> <option>1990</option> </select></td> <td><input type="text" name="ajtok" class="field50" /></td> <td><select name="allapot" class="list"> <option>mindegy</option> <option>Normál</option> <option>Törött</option> <option>Totálkáros</option> <option>Bontásra</option> <option>Hiányos</option> </select></td> <td><input type="text" name="km1" class="field80"/> - <input type="text" name="km2" class="field80"/> km</td> <td><input type="text" name="henger1" class="field50" /> - <input type="text" name="henger2" class="field50" /> cm3</td> </tr> <tr> <td><strong><? print $lang['teljesitmeny']?></strong> <? print $lang['tol']?></td> <td>&nbsp;</td> <td><strong><? print $lang['szin']?></strong></td> <td><strong><? print $lang['szallszsz']?></strong></td> <td>&nbsp;</td> </tr> <tr> <td align="left"><input type="text" name="teljesitmeny1" class="field50"/> - <input type="text" name="teljesitmeny2" class="field50"/> kW</td> <td>&nbsp;</td> <td><select name="szin" id="szin" class="list1"> <option><?print $lang['mindegy']?></option> <option><?print $lang['feher']?></option> <option><?print $lang['kek']?></option> <option><?print $lang['vilkek']?></option> <option><?print $lang['sotkek']?></option> <option><?print $lang['ockek']?></option> <option><?print $lang['piros']?></option> <option><?print $lang['ezust']?></option> <option><?print $lang['pezsgo']?></option> <option><?print $lang['zold']?></option> <option><?print $lang['vilzold']?></option> <option><?print $lang['sotzold']?></option> <option><?print $lang['sarga']?></option> <option><?print $lang['lila']?></option> <option><?print $lang['bibor']?></option> <option><?print $lang['barna']?></option> <option><?print $lang['vilbarna']?></option> <option><?print $lang['sotbarna']?></option> <option><?print $lang['rozsaszin']?></option> <option><?print $lang['narancs']?></option> <option><?print $lang['terep']?></option> <option><?print $lang['szurke']?></option> <option><?print $lang['vilszurke']?></option> <option><?print $lang['sotszurke']?></option> <option><?print $lang['beige']?></option> <option><?print $lang['homok']?></option> <option><?print $lang['ibolya']?></option> <option><?print $lang['okker']?></option> <option><?print $lang['vajszinu']?></option> <option><?print $lang['fekete']?></option> <option><?print $lang['bordo']?></option> </select></td> <td><input type="text" name="szallszsz1" class="field50"/> - <input type="text" name="szallszsz2" class="field50"/></td> <td>&nbsp;</td> </tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> </tr> <tr> <td height="256" colspan="4" rowspan="2"><?include "tab.php"?></td> <td align="center" valign="bot
Mutasd a teljes hozzászólást!
Minden oldal legelején:
session_start();

Aztán:
$_SESSION['post']=$_POST;

Ezek helyett:
$_POST['tipus'];

Mindenhol:
$_SESSION['post']['tipus'];

Dióhélyban.
Mutasd a teljes hozzászólást!

abcd