not going to the page

Started on the old forum in December 2011 · view the original in the archive · old links redirect here

6 replies · 1,652 views · started 14 years ago · 1 min read

4 participants
brand Senior · 391 posts #1

hi there can someone please help me with this please i have put a drop down box to the pages i want to go to but when i click go to page it just refresh's the page and dont take me to where i want it to go

<?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),"Games","");
echo head_tag(getnick_sid($sid)."@Games",1,getnick_sid($sid));
$title="<b><i>Games</i></b>";
$main="<div class=".align().">
<form 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\"/>
<input type=\"hidden\" name=\"sid\" value=\"$_GET[sid]\"/>
</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 everyone that helps me with this

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

woody Developer · 176 posts #3

brand wrote: 24 people who looked at this and no help

like dave told you in your last thread, learn to code properly, stop cutting corners, you've been at it long enough now

W3Schools Online Web Tutorials

There's your help

brand Senior · 391 posts #5

woody wrote: like dave told you in your last thread, learn to code properly, stop cutting corners, you've been at it long enough now

W3Schools Online Web Tutorials

There's your help

first thing woody i have tryed every way even looked at w3school and not got any where and i spent 4-6 hours trying to get it right and its not doing it

Rksk Ekanayaka wrote: 1st learn html

and as for learning html i now more about html than i do php and i think what ya mean is learn on how to convert html to php which is one thing i am still learning

and for everyone else i only post when i get stuck un like 90% of the people on here that jsut post and ask for things to be done for them i am not asking for it to be done i am asking for advice on how to sort the problem out and respect to all the people that can code

HELP THEM WHO HELPS YOU

External image (may be gone)

i only work on wapdesire v_2 coding only

Rksk Developer · 54 posts #6

anyway, u didn't know about how work forms.

frnd, you cand redirect to pages using above method. a form only can send some get or post values. it always go to a fixed page which we set in form's action. so, you need to use another php to redirect user to correct page.

Added after 6 minutes:

HTML - PHP Form Example

just_m3. Developer · 199 posts #7

You are missing the action .. 😛 and some knowledge .. try this instead 😉

<form action="/" 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>

This is ten percent luck, twenty percent skill Fifteen percent concentrated power of will Five percent pleasure, fifty percent pain 😂And a hundred percent reason to remember the name!

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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