title: Check condition and automatically redirect to a link, html
body: <p>I'm creating a sample website using xhtml with javascript support. Also using php for server side programming. I need to redirect the webpage to some other page from an html page, after checking some condition.What is the best method to implement this. I've done it using 
  header("link"); but since i'm using it inside the  tag, it shows up a error. is it possible to redirect to a particular link from within the  tag. </p>