PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Dec 12, 2017 10:55 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: reload page is correct?
PostPosted: Wed Jan 11, 2012 8:10 pm 
Offline
Forum Newbie

Joined: Wed Jan 11, 2012 8:05 pm
Posts: 2
hello guys, im new in php and i have a problem, i have create a php site that works ok but in my android phone, after i use for some hour delays the browsers ( i have test lot of browsers)



Syntax: [ Download ] [ Hide ]
<? ob_start(); ?>


<?php

session_start();

........
.....
......
some code and conection to mysql


if(isset($_POST['sub_1']))
                                          {
                                         $_SESSION['address_tmp']=$_SESSION['address_tmp']." oK ";
                                         header("location:some_other_page.php#jumpselection");
                                         }


if(isset($_POST['sub_2']))
                                          {
                                         $_SESSION['address2_tmp']=$_SESSION['address2_tmp']." hello ";
                                         header("location:thispage.php#jumpselection");
                                         }



?>

<body>
<form method="post" action="">
<input type="Submit" name="sub_1" value="action1"style="height:3.9em; width:16.5em; font-size:95%;">
</form>
</body>

<body>
<form method="post" action="">
<input type="Submit" name="sub_2" value="action2"style="height:3.9em; width:16.5em; font-size:95%;">
</form>
</body>

<? ob_end_flush(); ?>



but every page have 10-15 buttons like the above is the code, and every button in the end reloads the same page with header("location:thispage.php#jumpselection"); or cals another page with header("location:some_other_page.php#jumpselection");

this works but i notise some lag on the bowser afrer while..

the <? ob_end_flush(); ?> <? ob_start(); ?> is ok?? h have place this at the first and last line of the php file


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Yahoo [Bot] and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group