Jump to content

Annoying Little Problem... &


SourabhK

Recommended Posts

Hey I have the following code....


[quote]echo "<form method=\"link\" action=\"".$forumpath."login.php?$session[sessionurl]do=logout&amp;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]&amp;[/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]&amp;[/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



Link to comment
Share on other sites

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]
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.