473,800 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to stop page refresh

121 New Member
hi,

here i am facing some problem regarding the page refresh

below i am sending my code please go through...

in that i am including head.php, content.php, foot.php files into a single file called template.php
in that i have one form, once i click the submit button page is refreshing( refreshing in the sense slightly flickering) that should not be happen for me.

all these problems i am facing in IE(6.0) and above browser, but int Firefox it's not flickering, means page remains constant.

anybody knows solution for this please reply me

thank you
Nov 5 '07 #1
1 3091
sbettadpur
121 New Member
Sorry in first post i am forgot to attach the coding

here i am attaching

-------------TEMPLATE.php-----------------------------
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. include("head.php");
  3.  
  4. include("content.php");
  5.  
  6. include("foot.php");
  7.  
  8. ?>
  9.  

--------------------------head.php----------------------------
Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <body style="background-image: url('back.gif');">
  3. <table width=80% height=100% border=1 align='center'>
  4. <tr><td align='center' bgcolor='orange' height='10%'><h1>Header</h1></td></tr>
  5.  
----------------content.php----------------------------
Expand|Select|Wrap|Line Numbers
  1. <form method='post' action='template.php'>
  2. <tr><td>
  3.  
  4. <input type=image src="amarok_rewind.png " title="rewind" name='fbwd' value='submit'> <input type=image name='bwd' src="amarok_back.png" titl\
  5. e="back"> <input type="text" size=3 name='txt' align='center' value='<?php echo $id.$bknno.$bkid.$nno; ?>'\
  6.     readOnly>
  7. <input type=image name='fwd' src="amarok_next.png" title="next" value='fwd' >
  8. &nbsp;<input type=image name='frwd' src="amarok_fastforward.png" title="fastforward" value='submit' alt='fastforward'>
  9.  
  10. </td></tr>
  11.  
  12.  
  13. <tr><td align='center' bgcolor='green'>
  14.  
  15. <table bgcolor=white>
  16. <tr><td>Name</td><td><input type='text' name='n1'></td></tr>
  17. <tr><td>Name</td><td><input type='text' name='n2'></td></tr>
  18. <tr><td>Name</td><td><input type='text' name='n3'></td></tr>
  19. <tr><td>Name</td><td><input type='text' name='n4'></td></tr>
  20. <tr><td>Name</td><td><input type='text' name='n5'></td></tr>
  21. <tr><td><input type='submit' name='sub' value='Submit'></td></tr>
  22. <tr><td>
  23. <?php
  24.     foreach($_POST as $key => $value) {
  25.  
  26.    echo $key;
  27.     echo $value;
  28.   }
  29.  
  30. ?>
  31. </td></tr>
  32.  
  33. </table>
  34.  
--------------------------------footer.php----------------------------------------------------
Expand|Select|Wrap|Line Numbers
  1. <tr><td align='center' bgcolor='orange' height='10%'><h1>Footer</h1></td></tr>
  2. </table>
  3. </body>
  4. </html>
  5.  
Nov 5 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

11
15602
by: chris | last post by:
is there a way in either php or html to disable the back and or the reload/refresh on a browser so a potential spammer cant just keep refreshing the page of a form that sends a confirmation email out thanks in advance
11
2715
by: brendan | last post by:
Sorry this isnt a cross post .. i just didnt get any help from alt.php. I have a website which utilises post forms for navigation in some areas. Problem is, when *some* users hit the BACK button the POSTDATA content has expired and they need to refresh the page then they get a alert about refreshing expired data. I am getting complaints that this is too annoying and limits the sites useability.
6
11666
by: Baffin Shea | last post by:
Dear All, I am a beginner in javascript and looking for help, I put the following script in the original.asp: function NewWindows() { window.open("abc.asp", "new") }
1
16281
by: Ken Williams | last post by:
I made a web app, some form data is posted to a report.html that makes changes to a database. if the user does this and views the report, and then refreshes the web page the same information and process happens again which is bad. how do I stop or warn and give the option of canceling a page refresh request? I'm using PHP but don't think that matters. I'm hoping theres some fancy javascript trick with onunload or something. thanks.
4
21031
by: JohnSouth104 | last post by:
Hi I want to warn the user that changing the selected item in a pull-down will clear some data he has already entered in a file download box. I've tried using confirm() to return true or false with a line such as: onchange="return(confirm('proceed Yes or No')))" but it always stops the change.
8
3524
by: Matt Theule | last post by:
While stepping through an ASP.NET project, I found that data was being inserted into my database even though I was not stepping through the code that inserted the data. I have a single page with inline code. The page has a Datagrid, a textbox and a button. When the button is clicked, the value of the textbox is inserted into the table whose contents are displayed on the page. The problem occurs when I set a breakpoint on a line *IN*...
9
4912
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt at these breakpoints but unfortunatly it does not.. I had allowed script debugging in both iis home directory and in internet explorer. Also i added everyone from active directory to be members of debugging group. Web Server is W2k sp4 and iis...
4
2518
by: ravindarjobs | last post by:
hi...... i am using ms access 2003,vb6 i have a form. in that i have 2 buttons 1. start search 2 stop search when i click the "start search" button the fucntion SearchSystem() is called, it will search for a particular file in the computer(searches entire drives).
3
1946
by: canabatz | last post by:
Hi all i got a page that is refreshing data in a grid every 4 seconds and displaying results from the database and check if something as changed! my question is if there is 100 users that is watching the page and in some times living the page and viewing some other web sites!! ,the problem is that they eating my bandwidth for nothing!! there is a code that can stop the refreshing if they are not watching my page? thanks in advanced !
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10276
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10035
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9090
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.