<anchor> TO <form>

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

    <anchor> TO <form>

    Can any 1 please assist me.... I want this

    PHP Code:
    print '<small><b>Shout:</b></small><br/>'.
    '<input type="text" name="nick" value=""/><br/>'.
    '<small><b><anchor>Ad<go href="adshout.php?id='.$id.'&amp;pass='.$pass.'" method="post">'.
    '<postfield name="action" value="edit"/>'.
    '<postfield name="nick" value="$(nick)"/></go></anchor></b></small><br/>'
    Im HTML form this is what I cam up with but it dos not work why........

    PHP Code:


                  
    echo "<form method=\"post\" action=\"adshout.php?id=".$id."&amp;pass=".$pass."\">";
                      echo 
    "Shout:<br/><input name=\"nick\"/><br/>";
                      echo 
    "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";
                      echo 
    "</form>"
    What am I doing wrong....
    BakGat
    Code:
    class Counter {
    public:
      void Count();
      int  ReadDisplay();
    private:
      int  CurrentCount;
    };








    Back up my hard drive? How do I put it in reverse?
    My Community
    BakGat
    sigpic

    #2
    Code:
    echo "<form method=\"post\" action=\"adshout.php\">"; 
                      echo "Shout:<br/><input name=\"nick\"/><br/>"; 
                      echo "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>"; 
                      
    echo "<input type=\"hidden\" name=\"id\" value=\"$_GET[id]\"/>";
    echo "<input type=\"hidden\" name=\"pass\" value=\"$_GET[pass]\"/>";
    echo "</form>";
    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
      its always better if you placed

      echo "<form method=\"post\" action=\"adshout.php\">"; to echo "<form action=\"adshout.php\" method=\"post\">";
      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


        #4
        Thanx SUB this is working

        PHP Code:
                   echo "<form method=\"post\" action=\"adshout.php?id=".$id."&amp;pass=".$pass."\">";
                          echo 
        "Shout:<br/><input type=\"text\" name=\"nick\" value=\"\"/><br/>";
                          echo 
        "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";

        echo 
        "<input type=\"hidden\" name=\"action\" value=\"edit\"/>";
        echo 
        "<input type=\"hidden\" name=\"nick\" value=\"\"/>";
        echo 
        "</form>"
        But its not posting the message its posting blank

        Got it fixed

        PHP Code:
             echo "<form method=\"post\" action=\"adshout.php?id=".$id."&amp;pass=".$pass."\">";
                          echo 
        "Shout:<br/><input type=\"text\" name=\"nick\" value=\"\"/><br/>";
                          echo 
        "<input type=\"submit\" name=\"POST\" value=\"Shout\"/><br/>";

        echo 
        "<input type=\"hidden\" name=\"action\" value=\"edit\"/>";
        echo 
        "<input type=\"hidden\" name=\"$(nick)\" value=\"nick\"/>";
        echo 
        "</form>"
        Last edited by bOrN2pwn; 05.04.10, 17:09.
        BakGat
        Code:
        class Counter {
        public:
          void Count();
          int  ReadDisplay();
        private:
          int  CurrentCount;
        };








        Back up my hard drive? How do I put it in reverse?
        My Community
        BakGat
        sigpic

        Comment


          #5
          posting blank nothing else ?
          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
            Im haveing trouble here from this

            PHP Code:
            print '<form action="send.php?room='.$room.'&amp;id='.$id.'&amp;pass='.$pass.'" method="get"><br/>'.
            'To:<br/>'.
            '<input type="text" name="to'.$r.'" value="'.$to.'"/><br/>'.
            'Subject:<br/>'.
            '<input type="text" name="subject"/><br/>'.
            'Message<br/>'.
            '<input type="text" name="msg"/><br/>'.
            '<anchor>Sent Mail<go href="send.php?room='.$room.'&amp;id='.$id.'&amp;pass='.$pass.'" method="post">'.
            '<postfield name="to" value="$(to'.$r.')"/>'.
            '<postfield name="subject" value="$(subject)"/>'.
            '<postfield name="msg" value="$(msg)"/>'.
            '</go></anchor><br/>'
            To This

            PHP Code:
             echo "<form method=\"get\" action=\"send.php?room=".$room."&amp;id=".$id."&amp;pass=".$pass."\"/>";
                              echo 
            "To:<br/><input type=\"text\" name=\"to".$r."\" value=\"".$to."\"/><br/>";
                              echo 
            "Subject:<br/><input type=\"text\" name=\"subject\" value=\"\"/><br/>";
                              echo 
            "Message:<br/><input type=\"text\" name=\"msg\" value=\"\"/><br/>";
                              echo 
            "<input type=\"submit\" name=\"Submit\" value=\"Send\"/><br/>";

            echo 
            "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>";
            echo 
            "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>";
            echo 
            "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>";
            echo 
            "</form>"
            BakGat
            Code:
            class Counter {
            public:
              void Count();
              int  ReadDisplay();
            private:
              int  CurrentCount;
            };








            Back up my hard drive? How do I put it in reverse?
            My Community
            BakGat
            sigpic

            Comment


              #7
              think sum 1 should post a tutorial got half of my forms fixed and valid the other. o boy they still a menss.
              BakGat
              Code:
              class Counter {
              public:
                void Count();
                int  ReadDisplay();
              private:
                int  CurrentCount;
              };








              Back up my hard drive? How do I put it in reverse?
              My Community
              BakGat
              sigpic

              Comment


                #8
                Thats what happen to people who chat too much but anyways ama show u how a newbie i am by fixing this simply little thing
                PHP Code:
                echo '<form method="get" action="send.php">'; 
                echo '<input type="hidden" name="room" value="'.$room.'" />'; 
                echo '<input type="hidden" name="id" value="'.$id.'" />'; echo '<input type="hidden" name="pass" value="'.$pass.'" />';
                echo 'To:<br/><input
                type="text" name="to'.$r.'" value="'.$
                to.'"/><br/>';
                ?>
                Subject:<br/
                ><input type="text"
                name="subject"
                value=""/><br/>
                Message:<br/><input type="text"
                name="msg" value=""/><br/>
                <input type="submit" name="Submit" value="Send"/></form> <?
                The 'to' field value look a bit strange bt then again it depends on what u doin there..
                Last edited by syrus; 06.04.10, 11:04.

                Comment


                  #9
                  Wow thanks syrus ...... xHTML never was really my thing as ive seen to many sites thats not valid.... WML was my thing so this is somethin new to me....
                  BakGat
                  Code:
                  class Counter {
                  public:
                    void Count();
                    int  ReadDisplay();
                  private:
                    int  CurrentCount;
                  };








                  Back up my hard drive? How do I put it in reverse?
                  My Community
                  BakGat
                  sigpic

                  Comment


                    #10
                    I have only got 1 more left this 1 is a disaster....... to many variable for my brain lmao

                    PHP Code:
                    print '<input name="msg'.$r.'"/><br/>'.
                    '<select name="private" title="'.$lang['privat'].'">'.
                    '<option value="0">Public</option>'.
                    '<option value="'.$login['id'].'.'.$data['id'].'">Private</option>'.
                    '</select><br/>'.
                    '<anchor>Say<go href="room.php?id='.$id.'&amp;pass='.$pass.'&amp;room='.$room.'&amp;r='.$r.'&amp;mod='.$mod.'" method="post">'.
                    '<postfield name="private" value="$(private)"/>'.
                    '<postfield name="msg" value="'.$data['login'].', $(msg'.$r.')"/>'.
                    '<postfield name="translit" value="$(translit)"/></go></anchor><br/>'
                    BakGat
                    Code:
                    class Counter {
                    public:
                      void Count();
                      int  ReadDisplay();
                    private:
                      int  CurrentCount;
                    };








                    Back up my hard drive? How do I put it in reverse?
                    My Community
                    BakGat
                    sigpic

                    Comment


                      #11
                      was just browsing around on my phone and decide to fix it wldnt take me a min so why not, and sub it doesnt matter which come first method or action both will produce same results

                      Comment


                        #12
                        Originally posted by syrus View Post
                        Thats what happen to people who chat too much but anyways ama show u how a newbie i am by fixing this simply little thing
                        PHP Code:
                        echo '<form method="get" action="send.php">'; 
                        echo '<input type="hidden" name="room" value="'.$room.'" />'; 
                        echo '<input type="hidden" name="id" value="'.$id.'" />'; echo '<input type="hidden" name="pass" value="'.$pass.'" />';
                        echo 'To:<br/><input
                        type="text" name="to'.$r.'" value="'.$
                        to.'"/><br/>';
                        ?>
                        Subject:<br/
                        ><input type="text"
                        name="subject"
                        value=""/><br/>
                        Message:<br/><input type="text"
                        name="msg" value=""/><br/>
                        <input type="submit" name="Submit" value="Send"/></form> <?
                        The 'to' field value look a bit strange bt then again it depends on what u doin there..
                        I see were I made the mistake now lol...... This must come before the for itself am I correcrt.....

                        PHP Code:
                        echo "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>"
                        echo 
                        "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>"
                        echo 
                        "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>"
                        BakGat
                        Code:
                        class Counter {
                        public:
                          void Count();
                          int  ReadDisplay();
                        private:
                          int  CurrentCount;
                        };








                        Back up my hard drive? How do I put it in reverse?
                        My Community
                        BakGat
                        sigpic

                        Comment


                          #13
                          that one is even easier create a form and move all inputs and select tags within the form the foreach of those uri id etc create a hidden input or pm me the file am off to work

                          Comment


                            #14
                            Originally posted by bOrN2pwn View Post
                            I see were I made the mistake now lol...... This must come before the for itself am I correcrt.....

                            PHP Code:
                            echo "<input type=\"hidden\" name=\"$(to".$r.")\" value=\"to\"/>"
                            echo 
                            "<input type=\"hidden\" name=\"$(subject)\" value=\"subject\"/>"
                            echo 
                            "<input type=\"hidden\" name=\"$(msg)\" value=\"msg\"/>"
                            or is it the other way round? i.e name = name and not the value?

                            Comment


                              #15
                              Im confused
                              BakGat
                              Code:
                              class Counter {
                              public:
                                void Count();
                                int  ReadDisplay();
                              private:
                                int  CurrentCount;
                              };








                              Back up my hard drive? How do I put it in reverse?
                              My Community
                              BakGat
                              sigpic

                              Comment

                              Working...
                              X