anyone can help with an easy form method = get script?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jovigirl
    Confirmed User
    • Apr 2003
    • 1796

    #1

    anyone can help with an easy form method = get script?

    This is a code to generate sponsor hosted galleries
    The output should be just like this
    http://mydomain.com/hosted.php?codenumber

    but it happens to be like this instead

    http://mydomain.com/hosted.php?code=codenumber&submite=generate+links


    Here is the form code.
    It must be very simple but I just cant figure it out.
    PHP Code:
    <form>
    <name="code" action="http://mydomain.com/hosted.php?" method="get">
    Enter Your Affiliate Code To auto generate links:  <br>           
    <input type="text" name="code" size="8" maxlength="8"/>
    <input type="submit" name="generate links"/>      
    </form> 
    
    Thanks Guys
    ICQ :333-548-380
  • jennycards
    Confirmed User
    • Feb 2002
    • 1124

    #2
    I don't fully understand your question, but one thing is for sure: your Form coding is wrong:

    Instead of
    PHP Code:
    <form>
    <name="code" action="http://mydomain.com/hosted.php?" method="get"> 
    
    use
    PHP Code:
    <form name="code" action="http://mydomain.com/hosted.php?" method="get"> 
    
    Make Money with true niche programs like Adult ECards - Pantyhose Fetish - Men in Pantyhose

    Comment

    • SMG
      Confirmed User
      • Aug 2003
      • 1798

      #3
      lemme go find my magnifying glass maybe I can look
      TGP Webmasters: sign up for the top 100 tgp list!
      Submit galleries
      If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.

      Comment

      • jovigirl
        Confirmed User
        • Apr 2003
        • 1796

        #4
        That's ok in the original code
        I just want to add a number to an url via an input box
        nothing but the number
        but the from adds a lot of crap like code=XXXX & input= generate
        I want it to be php?XXXXXX
        not php?code=XXXX & input= generate
        ICQ :333-548-380

        Comment

        • jovigirl
          Confirmed User
          • Apr 2003
          • 1796

          #5
          Originally posted by SMG
          lemme go find my magnifying glass maybe I can look
          sorry that's the only way to post it here
          ICQ :333-548-380

          Comment

          • Libertine
            sex dwarf
            • May 2002
            • 17860

            #6
            PHP Code:
            <form name="code" action="http://mydomain.com/hosted.php" method="get">
            Enter Your Affiliate Code To auto generate links:             
            <input type="text" name="code" size="8" maxlength="8"/>
            <input type="submit" value="generate links"/>      
            </form> 
            
            /(bb|[^b]{2})/

            Comment

            • cash69
              So Fucking Banned
              • Oct 2002
              • 1052

              #7
              i think if you change it from GET to POST it doesnt add that extra shit..

              Comment

              • Libertine
                sex dwarf
                • May 2002
                • 17860

                #8
                Ehm... you wanted it like http://www.mydomain.com/hosted.php?666 instead of http://www.mydomain.com/hosted.php?code=666 ?

                Then use this:

                PHP Code:
                <form name="code">
                <form name="code">
                Enter Your Affiliate Code To auto generate links:             
                <input type="text" name="code" size="8" maxlength="8"/>
                <input type="submit" value="generate links" onclick="var url = 'http://www.mydomain.com/hosted.php?' + this.form.code.value; window.open(url);">      
                </form> 
                
                /(bb|[^b]{2})/

                Comment

                • jovigirl
                  Confirmed User
                  • Apr 2003
                  • 1796

                  #9
                  Thanks I solved it
                  Thanks Punkworld I ll keep your code in a safe place
                  ICQ :333-548-380

                  Comment

                  Working...