Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    <form action> problem

    Hey
    my code is the following
    Code:
    <html>
    <body>
    <form action="./index.php?inc=yo&">
    <p>
    Hash:</br>
    <input type="test" name="try" size="25" maxlenth="98" />
    </p>
    <p>
    <input type="submit" name="submit" value="submit" />
    </body>
    </html>
    What I am trying is to achieve is that I want the url to look like the following:
    Code:
    /index.php?inc=yo&try=[submittedinputhere]
    but it seems to ignore this " ?inc=yo& "
    Any way around this? :/


    Found a work around, I'll be using POST instead..
    Last edited by cloudd1; 02-19-2012 at 10:33 PM.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Code:
    <form action="./index.php" method="get">
    <p>
    Hash:</br>
    <input type="test" name="try" size="25" maxlenth="98" />
    </p>
    <p>
    <input type="hidden" name="inc" value="yo" />
    <input type="submit" name="submit" value="submit" />
    </form>


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •