Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form box not working

Status
Not open for further replies.

TaiChi56

Technical User
Mar 6, 2002
188
US
I need help with my form box. If you go to and click on a sport you get a page that does not show anything. Then when you back to click on another sport nothing happens. Here is the code I used.

<!-- drop down as an include -->
<FORM style=&quot;MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px&quot;>
<select
style=&quot;FONT-SIZE: 10px&quot;
onChange=&quot;window.open(this.options[this.selectedIndex].value,'_top')&quot;
name=location>
<option>Buccaneer Sports</option>
<option value=&quot;htpp:// </option>
<option value=&quot;htpp:// - M </option>
<option value=&quot;htpp:// - W </option>
<option value=&quot;htpp:// Country
</option>
<option value=&quot;htpp:// -
M </option>
<option value=&quot;htpp:// -
W </option>
<option value=&quot;htpp:// </option>
<option value=&quot;htpp:// </option>
<option value=&quot;htpp:// </option>
<option value=&quot;htpp:// </select>
</FORM></P></TD>
</FONT>

Hope you can help. Thank you.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
You'll kick yourself... Where you've got
[tt]
<option value=&quot;htpp://[/tt]
you should have
[tt]
<option value=&quot;http://[/tt]
Actually, you should be able to get away with
[tt]
<option value=&quot;/baseball.html&quot;>
[/tt]
as the browser will assume a document is on the current site if you don't specify another.

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Hey Chris, do you need the slash in that? If you used

Code:
<option value=&quot;baseball.html&quot;>

Then the browser will look in the same directory, but adding the slash makes it go to the root level. I think, anyway.

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
You're right, you don't need the slash on that page. I left it in because it's being used in a menu bar which might (now or in the future) also be used on a page that lives in a subdirectory. I think it's good practice to use URLs in menus that are relative to the document root rather than the current document.

-- Chris Hunt
Extra Connections Ltd

The real world's OK for a visit, but you wouldn't want to LIVE there!
 
Ah.

I tend to kick out directories and subdirectories like bunny pellets on a site, so I must have stopped using references to root when it would screw me up (I'm trying to remember a six-year old decision). Also must have been a pain because I think when I started doing some of this stuff, &quot;root&quot; wasn't top top level of your HTML directory, but the top level of your account.

Oh dear, I've become old. How the hell did that happen?

Cheers,


[monkey] Edward [monkey]

&quot;Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!&quot; -- inventor of the cat door
 
Thanks guys. You are right. I am kicking myself. Sorry it took so long to write back. I was out doing an adventure race and just got back. Thanks for your help. I guess I was too much in a hurry. I know to always go back and check the syntax first. Thanks for the support.

The secret in education lies in respecting the student. {Ralph Waldo Emerson}.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top