Can php get value from another page's url? -


i want use jquery make page partly refresh. page b loaded in page a. , page b has mysql search gets values depending on url rule. possible php value page's url? thanks.

page a:

<script type="text/javascript">      jquery(document).ready(function(){         $('#pagecontent').load('b.php');     }); </script> <div id="pagecontent"></div>  

page b:

<script language="javascript">     function pagination(page)     {         window.location = "a.php?more="+document.form.more.value;     } </script> <form name="form" action="a.php" method="get"> <input type="text" name="more" value="<? echo $_get['more'];?>"> <input type="submit" value="search"> </form> 

maybe can try this:

<script type="text/javascript">      jquery(document).ready(function(){         $('#pagecontent').load('b.php?var1=test&var2=test');     }); </script> <div id="pagecontent"></div>  

page b

<script language="javascript">     function pagination(page)     {          window.location = "a.php?var1=<?php echo $_get['var1'];?>&var2=<?php echo $_get['var2'];?>&more="+document.form.more.value;     } </script> <form name="form" action="a.php" method="get"> <input type="text" name="more" value="<? echo $_get['more'];?>"> <input type="submit" value="search"> </form> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -