You are here: Re: php ajax redirect « PHP Programming Language « IT news, forums, messages
Re: php ajax redirect

Posted by Mike on 11/27/07 15:01

On Nov 27, 9:47 am, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 27 Nov, 14:37, Mike <ampel...@gmail.com> wrote:
>
>
>
>
>
> > Hello,
> > I have a Login page that checks a Db for a Un and Pw using ajax.
> > If the Login is incorrect, they just get a embedded message.
> > If it is correct, I want to redirect COMPLETLY.
> > Whats happening is the new page is being embedded into the login page,
> > and I dont want that.
> > ............................
> > if ($rowcount==0){
> > echo "<p>Wrong Username or Password Dufus</p>";}
>
> > else
> > {//echo "<p>Your logged in $result_1[U]</p>";
> > $_SESSION['U'] = $result_1[U];
> > $_SESSION['P'] = $result_1[P];
> > header( 'Location: Main_Mockup.php' );}
>
> > ...............................
>
> > Any suggestions for this
> > Thanks
> > Mike
>
> I think that "Your logged in" should possibly be "You're logged in".
>
> Now for your initial question, it depends on what you are doing on the
> client with this returned data. Are you in a frame? Maybe you could
> use the href object?- Hide quoted text -
>
> - Show quoted text -

Thank,:)
I dont proofread till the end
I am not in a frame (yuk).
I just want to redirect out to a new page and keep my _session
Variables (Which it does anyway).
I'm pretty good with php, but new at AJAX.
Thanks,
Mike

 

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

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