erinella2003@yahoo.com Posted August 9, 2006 Share Posted August 9, 2006 Here is what the code looks like now in addingworkorder.phpblah blah blah$jid = mysql_insert_id();echo "<p><a href='displayworkorder.php?id=$jid'>Click here to view your new work order</a></p>";I'd rather not have the user have to click on anything, but rather simply be taken to the displayworkorder.php page automatically.Kind of new here - any suggestions?EP Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 9, 2006 Share Posted August 9, 2006 <meta HTTP-EQUIV="REFRESH" content="0; url=url">try sticking that somewhere Here is where I have mine: if ($_REQUEST[action]=="logout") { setcookie("cookiename", $cookie_data, time()-3600); ?> <meta HTTP-EQUIV="REFRESH" content="0; url=url"> <? } basically when someone logs out, it refreshes the page in a different place than the user was before.So if the user was looking at their profile, then they log out, it dumps them to the main page and resets their cookie. Link to comment Share on other sites More sharing options...
erinella2003@yahoo.com Posted August 9, 2006 Author Share Posted August 9, 2006 THAT WORKED! Thank you so much!!!!!!!!! Link to comment Share on other sites More sharing options...
Cronthenoob Posted August 9, 2006 Share Posted August 9, 2006 Yay! I actually helped someone. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 <meta HTTP-EQUIV="REFRESH" content="0; url=url">try sticking that somewhereYeah, I'll tell you where can stick that, buddy!it goes in the <head> Link to comment Share on other sites More sharing options...
Little Goat Posted August 10, 2006 Share Posted August 10, 2006 nice new avatar, justsomeguy. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 10, 2006 Share Posted August 10, 2006 Hey thanks. I swiped it from someone else on an Opera forum. It's nice work, transparency and everything. Link to comment Share on other sites More sharing options...
ThePsion5 Posted August 10, 2006 Share Posted August 10, 2006 You could also use the header("Location: url") function...If i remember correctly, the 'REFRESH' meta is frowned upon by search engines and the like, lol. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now