HTML <select> FORM ?

noivel

New Member
Messages
28
Reaction score
0
Points
0
Hi dears Im pretty newbi in HTML just started to learn it and I have a question, I guess for most of U it will be easy to answer!
I have a select form:
HTML:
<select>
<option value="">Choose Your Provider</option>
<option value="http://localhost/pawnagecentral-servers/pcs.html">PawnageCentral Servers</option>
<option value="http://localhost/planetventrilo/pv.html">PlanetVentrilo</option>
<option value="http://localhost/power-gsp/pgsp.html">Power GSP</option>
<option value="http://localhost/psybergaming/pg.html">PsyberGaming</option>
<option value="http://localhost/redline-gameservers/rlgs.html">RedLine GameServers</option>
<option value="http://localhost/redphive/rpn.html">RedPhive Networks</option>
</select>

What should I do that in select it opens option value PAGE?
 

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Hi,

Depending on whether you want the page to open in a new tab or the same tab one of the following should work.

For opening in same tab:
HTML:
<select onChange="location = this.options[this.selectedIndex].value;">
<option value="">Choose Your Provider</option>
<option value="http://localhost/pawnagecentral-servers/pcs.html">PawnageCentral Servers</option>
<option value="http://localhost/planetventrilo/pv.html">PlanetVentrilo</option>
<option value="http://localhost/power-gsp/pgsp.html">Power GSP</option>
<option value="http://localhost/psybergaming/pg.html">PsyberGaming</option>
<option value="http://localhost/redline-gameservers/rlgs.html">RedLine GameServers</option>
<option value="http://localhost/redphive/rpn.html">RedPhive Networks</option>
</select>

Or to open in a new tab:
HTML:
<select onChange="window.open(this.options[this.selectedIndex].value,'_blank');">
<option value="">Choose Your Provider</option>
<option value="http://localhost/pawnagecentral-servers/pcs.html">PawnageCentral Servers</option>
<option value="http://localhost/planetventrilo/pv.html">PlanetVentrilo</option>
<option value="http://localhost/power-gsp/pgsp.html">Power GSP</option>
<option value="http://localhost/psybergaming/pg.html">PsyberGaming</option>
<option value="http://localhost/redline-gameservers/rlgs.html">RedLine GameServers</option>
<option value="http://localhost/redphive/rpn.html">RedPhive Networks</option>
</select>
 

noivel

New Member
Messages
28
Reaction score
0
Points
0
Sorry 1 more question. I added this code in my template file and this is how it looks, as U see drop down menu 1 line lower than {author}, {views} and {date}

here is code of my template file
HTML:
<div class="podh">[edit]<img src="{THEME}/images/edit.png" title = "Edit" border="0"> [/edit] <span class="slink">author</span>: <strong>{author}</strong>  ({date}) | Views: {views} 
<form style="padding-left: 400px;">
<select onChange="location = this.options[this.selectedIndex].value;">
<option value="/gsp/185-gameserverscom.html">GAMESERVER.COM</option>
<option value="/gsp/186-lowpingsnet.html">LOWPINGS.NET</option>
<option value="/gsp/187-counter-strikecom.html">COUNTER-STRIKE.COM</option>
<option value="/gsp/188-darkstarlcccom.html">DARKSTARLCC.COM</option>
<option value="/gsp/189-verygamesnet.html">VERYGAMES.NET</option>
<option value="/gsp/190-velocity-serversnet.html">VELOCITY-SERVERS.NET</option>
<option value="/gsp/191-xfactorserverscom.html">XFACTORSERVERS.COM</option></select><from>
</div>
How to replace it to proper location? Thx for helping and where is THANKS button here I couldn't find!
 
Last edited:

fomalhaut

Member
Messages
107
Reaction score
0
Points
16
Hello Noivel.

I don't know if that's the real problem but you have not really close the "form" tag :
you wrote "<from>" instead of "</form>" after the "</select>" tag:
HTML:
<option value="/gsp/191-xfactorserverscom.html">XFACTORSERVERS.COM</option></select><from>
instead of
HTML:
<option value="/gsp/191-xfactorserverscom.html">XFACTORSERVERS.COM</option></select></form>
 
Top