Jump to content

reload page is correct?


lioslios

Recommended Posts

hello guys, i have a question,

 

in some php files i have in the start

 

<? ob_start(); ?>

 

 

<?php

 

session_start();

 

........

.....

......

 

 

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 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..

 

Link to comment
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.