...

View Full Version : creating a box and radio button to perform an action



kdrinkal
01-18-2004, 04:38 PM
i was hoping someone can assist on this one
I am tryin to do this


i want a box with a radio button

what i am trying to do is this

someone can place an ip address in a box and when they hit submit then on submit it will perform the action of adding a port onto it and sending it to like a page

so it would look like this

Please type in ip: *BOX* *Submit Box*

then it would take that person here http://ip address:100

this can be done with any ip address that is placed into the box

can anyone help here???

thank you

ReadMe.txt
01-18-2004, 06:13 PM
<form action="">
<fieldset>
<legend>IP Address Thingy</legend>
<label for="IPaddy">IP Address</label>
<input type="text" size="20" maxlength="15" id="IPaddy" />
<input type="button" onclick="top.location.href='http://'+document.getElementById('IPaddy').value+':100'" />
</fieldset>
</form>

untested but i dont see why i shouldn't work.

Paul Jr
01-18-2004, 06:31 PM
Originally posted by ReadMe.txt

<form action="">
<fieldset>
<legend>IP Address Thingy</legend>
<label for="IPaddy">IP Address</label>
<input type="text" size="20" maxlength="15" id="IPaddy" />
<input type="button" onclick="top.location.href='http://'+document.getElementById('IPaddy').value+':100'" />
</fieldset>
</form>

untested but i dont see why i shouldn't work.
It works. :thumbsup:

kdrinkal
01-18-2004, 07:11 PM
ty sooooo much you are great

kdrinkal
01-18-2004, 08:00 PM
how do i label that button such as go or submit

Nightfire
01-18-2004, 08:07 PM
<input type="button" onclick="top.location.href='http://'+document.getElementById('IPaddy').value+':100'" value="Go"/>

kdrinkal
01-18-2004, 09:07 PM
u are all great



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum