my own drop downbox

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

    my own drop downbox

    hi there good coder i am starting my own drop down box for my site and need a bit of help please

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



    i only work on wapdesire v_2 coding only

    #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><br/>
    <input type=\"submit\" value=\"go to page\"/>
    </form>
    </div>\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...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      i have changed it to a page for a moment
      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),"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
      Last edited by brand; 21.05.10, 01:19.
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment


        #4
        can any one help me with this please
        HELP THEM WHO HELPS YOU



        i only work on wapdesire v_2 coding only

        Comment


          #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...
          _______
          Info & Tips
          php.net
          w3schools.com

          Comment


            #6
            Originally posted by subzero View Post
            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



            i only work on wapdesire v_2 coding only

            Comment


              #7
              i am trying to get my page look like this



              can any one please help me out
              HELP THEM WHO HELPS YOU



              i only work on wapdesire v_2 coding only

              Comment


                #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



                i only work on wapdesire v_2 coding only

                Comment

                Working...
                X