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 7 of 7
  1. #1
    New Coder
    Join Date
    Aug 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I fix this form?

    Can someone please tell me how to fix this form so that just the address displays in the url box once my visitors press go.

    When someone presses the button now the url box displays like this:

    http://www.mylink.com/?select=Banner+Ads&Submit=Go

    I would like for the url box to just display the address:

    http://www.mylink.com/?kbid=1005

    Please tell me how to rewrite the code to accomplish this.

    Here is the code:

    <form Method="get"
    Action="http://www.mylink.com/?kbid=1005" >
    <font face="Arial" size="2"> <b>Learn how to promote <i>your
    Website</i> using<br></b></font> <select name="select">
    <option selected>SELECT PROMOTION</option>
    <option>Search Engines</option>
    <option>Free Classified Ads</option>
    <option>Ezine Classified Ads</option>
    <option>Bulletin Boards</option>
    <option>Newsgroups</option>
    <option>Banner Ads</option>
    <option>Affiliate Programs</option>
    <option>Network Marketing</option>
    <option>Joint Ventures</option>
    <option>Sales Copy</option>
    <option>Autoresponders</option>
    <option>Sales Strategies</option>
    <option>Opt-In Email</option>
    <option>Paid Classifed Ads</option>
    </select>
    <input type="submit" name="Submit" value="Go">
    </form>

  • #2
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Change your form method to post...

  • #3
    New Coder
    Join Date
    Aug 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Brandoe85
    Change your form method to post...
    I tried that:

    <form method="POST" action="http://www.mylink.com"> <b>Learn how to promote <i>your
    Website</i> using<br></b></font> <select name="select">
    <option selected>SELECT PROMOTION</option>
    <option>Search Engines</option>
    <option>Free Classified Ads</option>
    <option>Ezine Classified Ads</option>
    <option>Bulletin Boards</option>
    <option>Newsgroups</option>
    <option>Banner Ads</option>
    <option>Affiliate Programs</option>
    <option>Network Marketing</option>
    <option>Joint Ventures</option>
    <option>Sales Copy</option>
    <option>Autoresponders</option>
    <option>Sales Strategies</option>
    <option>Opt-In Email</option>
    <option>Paid Classifed Ads</option>
    </select>
    <input type="submit" name="Submit" value="Go">
    </form>

    However I keep getting this error:

    Method Not Allowed
    The requested method POST is not allowed for the URL /index.htm.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Action?

    Your action attribute should contain a full path to the exact page that's going to handle your page; just giving the domain appearently resolves into sending it to index.htm, which fails.

    How is your form processsed?
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    Quote Originally Posted by Flite
    Method Not Allowed
    The requested method POST is not allowed for the URL /index.htm.
    Sounds like a webserver configuration problem.

  • #6
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    What type of file are you trying to send your form results to? Sending it to a .htm or. html file won't work - or atleast it didn't when I tried it ages ago.

  • #7
    New Coder
    Join Date
    Aug 2004
    Posts
    33
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok since the way I am doing this won't work...how can I create a form that gives ppl several options thes send them to my link?

    How would I write this code?


  •  

    Posting Permissions

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