PHP jump to other page

John Mark Walker johnmark at johnmark.org
Thu Oct 5 05:06:52 UTC 2006


1. the "<HTML>" line at the top of your .php file will ruin any  
chances of making header() work
2. there are other ways to do this. Instead of using header() why not  
use include( "/path/to/file" ) instead?

-JM


On Oct 4, 2006, at 9:22 PM, Groundhog wrote:

>> Where was it in this you wanted a redirect?
>
> after there are no error message, then jump to another page.
>
> 	if($error_msg==''){
> 		if($photo_paper == "on"){
>                         ---->> Jump to index2.php
> 		} else {
> 			---->> Jump to index3.php
> 		}
> 	} else {
> 		echo "<font color=red>$error_msg</font>";
> 	}
>
>> Oh and if the user enters an image that isn't a jpg is that meant to
>> be an error?
>
> YES
>
>> btw Groundhog do you use IRC?
>
> NO, why?
>
> -- 
> Come and Visit My Blog
> http://ubuntu-ku.blogspot.com
>
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list