my own drop downbox

Started on the old forum in May 2010 · view the original in the archive · old links redirect here

7 replies · 500 views · started 16 years ago · 1 min read

2 participants
brand Senior · 391 posts #1

hi there good coder i am starting my own drop down box for my site and need a bit of help 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";

now every time i go to the page it dont change can some one help me please and yes i am trying to code it my self but having problems with it going to the pages can some one tell me where i am going wrong please

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

subzero Super moderator Fellow · 3,954 posts #2

Change to POST to GET

<form action=\"./help.php?sid=$sid\" method=\"get\">

Then it will put &page=inbox

if this not movin its cuz you have a link in action

Try this

echo "<form method="get"> <select>

<option name=\"p\" value=\"./main.php?sid=$sid\">mainpage</option> <option name=\"p\" value=\"./forums/forums.php?sid=$sid\">forums</option> <option name=\"p\" value=\"./inbox/inbox.php?sid=$sid\">inbox</option> </select>

<input type="submit" value="go to page"/>

</form> \n";

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

brand Senior · 391 posts #3

i have changed it to a page for a moment

<?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)."'");

/////////////////////////FIND FRIENDS/////////////////////////

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();
?>

and every time i try it i get logged out

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

subzero Super moderator Fellow · 3,954 posts #5

Add this before

</form>

like this

<input type="hidden" name="sid" value="$_GET[sid]"/>

</form>

This will do this

domain.tld?sid=923w59382urjjsdycv88eyu13289ru&page=what?

But you now can edit this out

<form action=\"./droptest.php\" method=\"get\">

take sid out of that it will login still...

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

brand Senior · 391 posts #6

subzero wrote: Add this before

</form>

like this

<input type="hidden" name="sid" value="$_GET[sid]"/>

</form>

This will do this

domain.tld?sid=923w59382urjjsdycv88eyu13289ru&page=what?

But you now can edit this out

<form action=\"./droptest.php\" method=\"get\">

take sid out of that it will login still...

i have tryed that mate and its still not doing any thing any chance you can put it on the page i have uploaded on here please mate

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

brand Senior · 391 posts #8

i have not coded this my self a diffrent way and works great thansk to all thos who tryed to help me

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close