Hi all!

Please help me with this problem:

SHORT: how can I erase the content of a page currently displayed in client's
browser? Or other solutions (see LONG)


LONG:
I have a form generated with a php script that looks like:
<?
    if(!isset($submit)) {
        do_form(0);
    }
    if($real_name=="" && isset($submit)) {
        do_form(1);
    }
    ...

    function do_form($err_msg) {
        .................
        if($err_msg==1) {
            printf("font color=red");
            printf("Real name (*) :");
            printf("</font>");
        }
        else {
            printf("Real name:");
        }
        .........
    }

The script keeps writing forms each time something is wrong... Should I send
a header? With what? Or please tell me where I can find what headers can I
send from inside my php script?


Thanks all,
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to