Reply to Re: redirect

Your name:

Reply:


Posted by Jerry Stuckle on 10/10/05 22:26

Zoe Brown wrote:
> Hello
>
> I am new to php but have done lots of asp and .net.
>
> How do I do redirect a page to a new page in php ???
>
> I am trying to use
>
> <?php
>
> ob_start();
>
> $username="bla";
>
> $password="blabla";
>
> if (($_POST['username']==$username) && ($_POST['password']==$password))
>
> {
>
> header("Location: main.html");
>
> }
>
> ?>
>
>
>
> Thanks so much.
>
>

It's hard telling. What kind of error are you getting?

BTW - you shouldn't need the ob_start() call.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[Back to original 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

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