Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:

HTML
<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 8: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

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
 
Share this answer
 
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900