not going to the page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    not going to the page

    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


    Code:
    <?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



    i only work on wapdesire v_2 coding only

    #2
    24 people who looked at this and no help
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    Comment


      #3
      Originally posted by brand View Post
      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

      Comment


        #4
        1st learn html

        Comment


          #5
          Originally posted by woody View Post
          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

          Originally posted by Rksk Ekanayaka View Post
          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



          i only work on wapdesire v_2 coding only

          Comment


            #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
            Last edited by Rksk; 14.12.11, 03:17.

            Comment


              #7
              You are missing the action .. :p and some knowledge .. try this instead ;)
              PHP Code:
              <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> 
              Last edited by just_m3.; 10.01.12, 03:07.
              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!

              Comment

              Working...
              X