Reply to Re: Using PHP to load another page or html page

Your name:

Reply:


Posted by burke on 03/23/06 03:26

Fish44 wrote:
> Tried the Header option first but could not get it to work,
>
> code ---------------
> 83 echo( $tempName ."<br>" ."You are now logged in. <br>");
> 84 header(Location:"http://www.mitas.ie/");
> 85 exit;
> code end---------
>
> My browser tells me that i have an error on that line.
> Parse error: syntax error, unexpected ':' in c:\Apache\htdocs\login.php
> on line 84
>
> Apologies guys but im pretty new at php.
>

That's perfectly alright, we're all new at some point, I know I still am! ;)

You'll want to have the whole parenthesized part in quotes, like so:

header("Location: http://www.mitas.ie/");

....and that should do it.

The reason is that you're sending the browser the HTTP header "Location:
http://mitas.ie/", which tells it that the location it should be going
to is mitas.ie.

Good Luck!

Burke

[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

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