I'm abit new to php and I recently built a forum using php and my sql but I had to use javascript to jump between pages i.e. document.location="blah blah" which worked fine but there has to be a better way. Please help.
Use HTML links.
Ist there some kind of built in php function, like asp's response.redirect("index.asp")?
could you just go echo "<a href=\"$link\">Click here</a>";
if thats not any good you could make your own function.
function make_link($link, $text){ echo "<a href=\"$link\">$text</a>"; }
Originally posted by bweyah Ist there some kind of built in php function, like asp's response.redirect("index.asp")?
Yes. Search this forum for the word "redirect". Or at www.php.net, use the search facility there to search the "online documentation" for the same word.
Use:
header("Location: http://blah.blah.com/blah/");