Wapdesire Forums: drop down box to go to set pages - Wapdesire Forums

Jump to content

Toggle shoutbox Shoutbox

ashu007 Icon : (17 August 2010 - 01:40 PM) Any staff here
ashu007 Icon : (17 August 2010 - 01:40 PM) hii frnds
deathstar Icon : (15 August 2010 - 12:57 PM) ori i take it that afta dark site is urs wheres that script lol
ori Icon : (15 August 2010 - 06:43 AM) hi hows it going
arena88 Icon : (13 August 2010 - 07:48 AM) hello
jsyguy23 Icon : (11 August 2010 - 06:34 PM) whats up ?
ashu007 Icon : (11 August 2010 - 06:31 AM) plss help me
ashu007 Icon : (11 August 2010 - 06:23 AM) :unsure:
ashu007 Icon : (11 August 2010 - 06:08 AM) i want help from staff
ashu007 Icon : (11 August 2010 - 06:08 AM) heloo fnds
slash Icon : (25 July 2010 - 09:09 AM) Hello............................... :P
jsyguy23 Icon : (12 July 2010 - 06:30 PM) thanks m8 lets get this place rocking
ori Icon : (12 July 2010 - 02:40 AM) welcome back m8
jsyguy23 Icon : (08 July 2010 - 04:56 PM) Jsyguys back lol
ori Icon : (08 July 2010 - 07:30 AM) well maybe u should be more specific
shatta Icon : (08 July 2010 - 04:19 AM) alot
ori Icon : (05 July 2010 - 11:16 PM) whats the problem?
shatta Icon : (05 July 2010 - 06:33 AM) hey ppl im new to dis n i wonder if one of u guys can help me with codin
ori Icon : (29 June 2010 - 12:05 PM) how is everyone today?
ori Icon : (13 June 2010 - 12:23 PM) 1st edition of the starting script is uploaded hope u all enjoy
Resize Shouts Area

drop down box to go to set pages

#1 User is offline   brand Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 21-May 10
  • Country:

Posted 21 May 2010 - 11:46 AM

hi there good coders i am trying to create a drop down box for my main page but when i try it it wont take me aby where can any one help me out please

$main="<div class=".align().">
<form action=\"./help.php?sid=$sid\" method=\"post\">
<select name=\"page\">
<option value=\"./main.php?sid=$sid\">mainpage</option>
<option value=\"./forums/forums.php?sid=$sid\">forums</option>
<option value=\"./inbox/inbox.php?sid=$sid\">inbox</option>
</select><br/>
<input type=\"submit\" value=\"go to page\"/>
</form>
</div>\n";


i have also tryed putting it on its own page and it just logs me out also i tryed changing the coding as well



<?php
define('WCS',true);
include('./core/main.inc');
header_type();
cleardata();
if(ipbanned(ip(),browser())){
if(!shield(getuid_sid($sid))){
echo head_tag("Ip Blocked!!!",0,0);
echo ipbanned_msg();
echo foot_tag();
exit();
}
}
if(!islogged($sid)){
echo head_tag("Error!!!",0,0);
echo session_expired();
echo foot_tag();
exit();
}
if(banned(getuid_sid($sid))){
echo head_tag("Error!!!",1,getnick_sid($sid));
echo banned_msg($sid);
echo foot_tag();
exit();
}
mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

/////////////////////////test page/////////////////////////



addonline(getuid_sid($sid),"testing page","");
$nick=getnick_sid($sid);
echo head_tag($nick."@testing page",1,$nick);
$title="<b>testing page</b>";
$main="<div class=".align().">
<form action=\"./droptest.php?sid=$sid\" method=\"get\">
<select>
<option value=\"./main.php?sid=$sid\">main page</option>
<option value=\"./forums/forums.php?sid=$sid\">forums</option>
<option value=\"./inbox/inbox.php?sid=$sid\">inbox</option>
</select><br/>
<input type=\"submit\" value=\"go to page\"/>
</form>
</div>\n";

$L1="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
$L2="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
$L3="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
$L4="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
$L5="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
echo foot_tag();
?>


thanks to any one that can help me out please
0

#2 User is offline   ori Icon

  • Administrator
  • Icon
  • Group: Administrators
  • Posts: 25
  • Joined: 13-April 10
  • Country:

Posted 22 May 2010 - 12:35 PM

that code doesnt look right
0

#3 User is offline   brand Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 21-May 10
  • Country:

Posted 22 May 2010 - 12:46 PM

View Postori, on 22 May 2010 - 01:35 PM, said:

that code doesnt look right



i now ori thats why i am asking for help i am trying to get it so it looks like this Attached File  look.bmp (394.65K)
Number of downloads: 28 can any one help me please
0

#4 User is offline   jsyguy23 Icon

  • Newbie
  • Icon
  • Group: Moderators
  • Posts: 12
  • Joined: 14-April 10
  • Country:

Posted 10 July 2010 - 12:03 PM

View Postbrand, on 22 May 2010 - 12:46 PM, said:

i now ori thats why i am asking for help i am trying to get it so it looks like this Attachment look.bmp can any one help me please


u need to do it bit like this cause im doing this for my pc version

if($location=="mainmenu"){echo "<meta http-equiv=\"refresh\" content=\"0;url=/main.php?ses=$ses\"/>";}
else if($location=="onlinelist"){echo "<meta http-equiv=\"refresh\" content=\"0;url=/online.php?ses=$ses\"/>";}
else if($location=="mysettings"){echo "<meta http-equiv=\"refresh\" content=\"0;url=/settings/settings.php?ses=$ses\"/>";}
else if($location=="inbox"){echo "<meta http-equiv=\"refresh\" content=\"0;url=/inbox/inbox.php?ses=$ses\"/>";}

else if($location==""){
}

else if($location==""){
}

else if($location==""){
}

else if($location==""){
}

else if($location==""){
}
kinky-devils
MOD ERE ANY PROBS JUST ASK..I DONT BITE....HEHE!

JUST DONT INBOX ME FOR HELP CAUSE U WONT GET IT
0

#5 User is offline   ori Icon

  • Administrator
  • Icon
  • Group: Administrators
  • Posts: 25
  • Joined: 13-April 10
  • Country:

Posted 19 July 2010 - 01:54 AM

u dont need to redirect off another page
0

#6 User is offline   jsyguy23 Icon

  • Newbie
  • Icon
  • Group: Moderators
  • Posts: 12
  • Joined: 14-April 10
  • Country:

Posted 26 July 2010 - 12:10 PM

View Postori, on 19 July 2010 - 01:54 AM, said:

u dont need to redirect off another page



how else would u do it m8
kinky-devils
MOD ERE ANY PROBS JUST ASK..I DONT BITE....HEHE!

JUST DONT INBOX ME FOR HELP CAUSE U WONT GET IT
0

#7 User is offline   brand Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 10
  • Joined: 21-May 10
  • Country:

Posted 25 August 2010 - 10:40 AM

View Postjsyguy23, on 26 July 2010 - 01:10 PM, said:

how else would u do it m8



i have sorted it now
0



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users