The first header is received, then the dialog box is displayed. PHP only loads one section at a time and it will go in order by include files, ie. header, footer, whatever. If you press cancel, the page goes here:
echo 'Authorization Required.';
If you were to write a correct login it would be sent nowhere by the code you have written, but it would eventually be linked in an if else statement saying fopen(www.whatever.com)
Hope this helps.
Anders Ohrt wrote:
Sorry to say it, but that doesn't answer any of my questions. I know how an if-statement works, I'm not a newbie...
"Is the first header received by the browser, then the login dialog displayed, or is the whole script executed past this, and then the dialog displayed?"
"And where does the code jump to if I press Cancel, or write a correct login? Is the page automagically reloaded?"