...

View Full Version : How do I fix this form?



Flite
01-25-2005, 10:12 PM
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>

Brandoe85
01-25-2005, 11:25 PM
Change your form method to post...

Flite
01-26-2005, 02:36 AM
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.

ronaldb66
01-26-2005, 09:02 AM
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?

Brandoe85
01-26-2005, 04:54 PM
Method Not Allowed
The requested method POST is not allowed for the URL /index.htm.
Sounds like a webserver configuration problem.

JamieR
01-26-2005, 05:41 PM
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.

Flite
01-26-2005, 10:12 PM
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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum