Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do I get page within page?

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
Fellow HTML'ers:

I've been coding css/html for a while now and I've not run into this. My programs usually output via modular functions such as _headers, _body, _footer, etc, Each with its own output. I've always followed the same methods and sequence when calling these so my pages have remained quite consistent.

Now, however, I've run into something that I cannot seem to figure out. And that is when I have multiple pages of output in a single execution of my php program.

In this particular case when processing the returned data from a form I output a complete page with a "please wait" type of message while I perform communications with a remote server. Upon receipt of the remote data I then display a completely fresh page. However, this page is built BELOW the please wait page.

One would think that the _heading function, which works in all other cases, would clear and start a new page. But it doesn't. I just get a new set of headers below the footers of the previous page.

I've searched this site and various online html references as well as my stable of html books.

There has got to be something quite simple that I am missing or more than likely forgotten about.

Can someone please advise where or what to look for or address to overcome this issue?

Thanks [sadeyes]

 
First, this sounds like a php issue. You might get better answers asking in a forum dedicated to php.

Second, unless we have code to look at there is no way we can help.

mmerlinn


"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond

Poor people do not hire employees. If you soak the rich, who are you going to work for?
 
Agreed for PHP issues go here: forum434

With that said, how are you communicating with the server?> Ajax?

How are you assuming that the new information may overwrite the existing Please wait message?

We really need more information to debug this.



----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
SOLVED!
FWIW - as it is said: "stupid is as stupid does". No matter how long we look at some logic we just don't see what it truly is doing.

I try to code in modules and in this case one of my rarely used modules called another which was already called. Hence, double output.

Thanks for your responses.

B
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top