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

Posted by Good Man on 11/28/07 02:58

Mike <ampeloso@gmail.com> wrote in
news:9accba9e-42d8-450d-b893-c1776f7b3a83@s8g2000prg.googlegroups.com:

> Actually I did get it to work with this:(which of course is just
> Javascript)
> if (xmlHttp.readyState==4)
> {
> if (xmlHttp.responseText == "<p>Wrong Username or Password Dufus</
> p>")
> {
> document.getElementById("txtHint").innerHTML=xmlHttp.responseText
> }
> else window.location = "http://www.ampsoft.com/NCAA/Main_Mockup.php"
> }
> }
>

Just be sure you're using PHP sessions on
http://www.ampsoft.com/NCAA/Main_Mockup.php, otherwise all someone has to
do is look at your javascript code for instant admission to your restricted
area / pages.

 

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

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