You are here: Re: Headers?? « PHP Programming Language « IT news, forums, messages
Re: Headers??

Posted by Martie on 11/19/04 11:47

On 12 May 2006 10:21:02 -0700, bob.herbst@gmail.com wrote...
>
>I am writing a page with sessions. At the start of every page I check
>to make sure that the user actually has a session by checking for some
>SESSION variables. On one of my pages I have a form that is to add
>guests for an event. I have no idea how many guests a particular member
>is giong to bring and the number of guests is not limited. So to save
>myself time I wrote a form that will allow you to add one guest and
>then hit add guest. This will save that guest to the guest table in my
>MySQL database but then I want to reload the page to have them add
>another guest. The only problem I am having is that the only way I know
>how to send the user to the page is using the header() function. This
>is not working because I have already output data. Is there a better
>way to do this so that I can one form and not have to have a form input
>for guests up to 20?
>
>Thanks
>

Since you have a separate page processing the form data, that might be difficult
to do. If you have a way to consolidate that to one program, you can create an
"if/else" loop to mange printing the empty form and/or processing it.Other than
that you have to manage your output on the other program so that you can use the
header() function.


--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация