how to stop page refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sbettadpur
    New Member
    • Aug 2007
    • 121

    how to stop page refresh

    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
  • sbettadpur
    New Member
    • Aug 2007
    • 121

    #2
    Sorry in first post i am forgot to attach the coding

    here i am attaching

    -------------TEMPLATE.php-----------------------------
    [code=php]
    <?php
    include("head.p hp");

    include("conten t.php");

    include("foot.p hp");

    ?>
    [/code]


    --------------------------head.php----------------------------
    [code=php]
    <html>
    <body style="backgrou nd-image: url('back.gif') ;">
    <table width=80% height=100% border=1 align='center'>
    <tr><td align='center' bgcolor='orange ' height='10%'><h 1>Header</h1></td></tr>
    [/code]

    ----------------content.php----------------------------
    [code=php]
    <form method='post' action='templat e.php'>
    <tr><td>

    <input type=image src="amarok_rew ind.png " title="rewind" name='fbwd' value='submit'> <input type=image name='bwd' src="amarok_bac k.png" titl\
    e="back"> <input type="text" size=3 name='txt' align='center' value='<?php echo $id.$bknno.$bki d.$nno; ?>'\
    readOnly>
    <input type=image name='fwd' src="amarok_nex t.png" title="next" value='fwd' >
    &nbsp;<input type=image name='frwd' src="amarok_fas tforward.png" title="fastforw ard" value='submit' alt='fastforwar d'>

    </td></tr>


    <tr><td align='center' bgcolor='green' >

    <table bgcolor=white>
    <tr><td>Name</td><td><input type='text' name='n1'></td></tr>
    <tr><td>Name</td><td><input type='text' name='n2'></td></tr>
    <tr><td>Name</td><td><input type='text' name='n3'></td></tr>
    <tr><td>Name</td><td><input type='text' name='n4'></td></tr>
    <tr><td>Name</td><td><input type='text' name='n5'></td></tr>
    <tr><td><inpu t type='submit' name='sub' value='Submit'> </td></tr>
    <tr><td>
    <?php
    foreach($_POST as $key => $value) {

    echo $key;
    echo $value;
    }

    ?>
    </td></tr>

    </table>
    [/code]

    --------------------------------footer.php----------------------------------------------------
    [code=php]
    <tr><td align='center' bgcolor='orange ' height='10%'><h 1>Footer</h1></td></tr>
    </table>
    </body>
    </html>
    [/code]
    Last edited by ak1dnar; Nov 5 '07, 12:29 PM. Reason: Missing [CODE=php] tags

    Comment

    Working...