SourabhK Posted July 5, 2006 Share Posted July 5, 2006 Hey I have the following code....[quote]echo "<form method=\"link\" action=\"".$forumpath."login.php?$session[sessionurl]do=logout&logouthash=$logouthash";echo $vbulletin->userinfo['logouthash'];echo "\">";echo "<input type=\"submit\" value=\"Logout\" class=\"submit\" style=\"float: left; font-weight:bold; color:#9C9C9C\"";echo "\">";echo "</form>"; [/quote] Now everything works fine expect for one little mistake in the code generated that pervents the Button Link from taking the user to the corrrect page....What the above generates is..[quote]<form method="link" action="http://mydomain.com/forum/login.php?do=logout[color=red][b]&[/b][/color]logouthash=a083030ca9c3acbb17b1e70d136314f6"><input type="submit" value="Logout" class="submit" style="float: left; font-weight:bold; color:#9C9C9C[b]"">[/b][/quote]The main problem is the thing in bold and red...instead of creating just one [b]&,[/b] it creates a [color=red][b]&[/b][/color]Another problem is the second thing in bold it creates two of these: ""Thats not really a problem since I will be using CSS and removing those after I figure what the problem is...Anyway any help would be greatly appreciated...Thank You Quote Link to comment https://forums.phpfreaks.com/topic/13688-annoying-little-problem/ Share on other sites More sharing options...
trq Posted July 5, 2006 Share Posted July 5, 2006 Is there meant to be something in $session[sessionurl]? Otherwise... whats wrong with?[code=php:0]echo "<form method=\"link\" action=\"".$forumpath."login.php?do=logout&logouthash=$logouthash";[/code]Your other problem is simple.[code=php:0]echo "<input type=\"submit\" value=\"Logout\" class=\"submit\" style=\"float: left; font-weight:bold; color:#9C9C9C";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13688-annoying-little-problem/#findComment-53107 Share on other sites More sharing options...
SourabhK Posted July 5, 2006 Author Share Posted July 5, 2006 Yup that is important...it contains session data and the like.. basically cookie informationlol thanks for the second one.. im a moron, I can't believe I didn't see that... Thanks Quote Link to comment https://forums.phpfreaks.com/topic/13688-annoying-little-problem/#findComment-53109 Share on other sites More sharing options...
trq Posted July 5, 2006 Share Posted July 5, 2006 You sure its not meant to be $_SESSION then as its showing up blank in your example?Try...[code=php:0]echo "<form method=\"link\" action=\"".$forumpath."login.php?{$_SESSION['sessionurl']}&do=logout&logouthash=$logouthash";[/code] Quote Link to comment https://forums.phpfreaks.com/topic/13688-annoying-little-problem/#findComment-53125 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.