|
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]
|