Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
buttons & url Problem
Old 02-05-2010, 11:56 PM buttons & url Problem
Junior Talker

Posts: 4
Name: Mansour
Trades: 0
hello,
i have problem with this code:
i want when someone click the button to use the url

but the problem is the url is the same in all the buttons

can someone tell me the error

HTML Code:
<form action="url1.html"><input type="submit" value="Click Me1" />
<form action="url2.html"><input type="submit" value="Click Me2" />
<form action="url3.html"><input type="submit" value="Click Me3" />
<form action="url4.html"><input type="submit" value="Click Me4" />
<form action="url5.html"><input type="submit" value="Click Me5" />
<form action="url6.html"><input type="submit" value="Click Me6" />
<form action="url7.html"><input type="submit" value="Click Me7" />
the code supposed to go to url1 when the user click at click me1,
url2 when the user click at click me2
url3 when the user click at click me3

but in the code above if i click in any button i'll go to url1 !!!

Help!!!!
king_888 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-06-2010, 01:24 AM Re: buttons & url Problem
Knight13's Avatar
Defies a Status

Posts: 10,289
Name: Knight13
Location: Cleveland, Ohio
Trades: 0
You have to add the ending form tag like this:

HTML Code:
<form action="url1.html"><input type="submit" value="Click Me1" /></form>
<form action="url2.html"><input type="submit" value="Click Me2" /></form>
<form action="url3.html"><input type="submit" value="Click Me3" /></form>
<form action="url4.html"><input type="submit" value="Click Me4" /></form>
<form action="url5.html"><input type="submit" value="Click Me5" /></form>
<form action="url6.html"><input type="submit" value="Click Me6" /></form>
<form action="url7.html"><input type="submit" value="Click Me7" /></form>
Knight13 is offline
Reply With Quote
View Public Profile
 
Old 02-06-2010, 02:05 AM Re: buttons & url Problem
Novice Talker

Posts: 9
Name: Svetoslav Marinov
Trades: 0
How about

Code:
<input type="button" value="Click Me1" onclick="window.location='url1.html';" />
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
lordspace is offline
Reply With Quote
View Public Profile Visit lordspace's homepage!
 
Old 02-06-2010, 03:23 AM Re: buttons & url Problem
Junior Talker

Posts: 4
Name: Mansour
Trades: 0
thank you all it's work good
you are the best!!
king_888 is offline
Reply With Quote
View Public Profile
 
Old 02-06-2010, 04:33 AM Re: buttons & url Problem
vectorialpx's Avatar
Extreme Talker

Posts: 249
Name: octavian
Location: Bucharest
Trades: 0
you can make a link from CSS, with some background image [with width and height]
__________________
you can
Please login or register to view this content. Registration is FREE
vectorialpx is offline
Reply With Quote
View Public Profile Visit vectorialpx's homepage!
 
Reply     « Reply to buttons & url Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26767 seconds with 12 queries