Click here to Skip to main content
14,389,354 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello. I have written this small HTML code to make buttons appear one after the other. I link these to websites and so when someone visits a website he can then view the next one using the buttons. I currently have 4 buttons that go to web pages. I am finding that my code will add weird things onto the end of my url and prevent it from working. Here is an example:

<div><form method="GET" action="http://tinyurl.com/xtremetop100kingkraftvote" target="_blank" style="text-align: center;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><input id="vote2" disabled="" name="vote3" value="     XtremeTop100    " type="submit" onclick="document.getElementById('vote3').disabled=false">
</form></div>


For some reason when I hit this button on my website it comes up with this url:
http://tinyurl.com/xtremetop100?vote3= ++++XtremeTop100+++

This happens to more than one of my buttons. Anyone know why?
Posted
Updated 23-Jan-12 9:01am
v2
Comments
Sergey Alexandrovich Kryukov 23-Jan-12 14:03pm
   
Please format this code sample properly -- hard to read; fix it. I added proper "pre" tags, they must be there.
--SA
Rate this:
Please Sign up or sign in to vote.

Solution 1

It looks like your code has spaces or some white space characters in the URL - which isn't allowed And so is replaced Wi plusses
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

It looks like your code has spaces or some white space characters in the URL - which isn't allowed And so is replaced With plusses
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100