473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Radio buttons : how to make them link

Could you please tell me what is wrong with this :

<input type="radio" name="choose" value="A."onClick="
form.action = 'destination http://';">

it doesn´t work ..
Thanks !
Aug 15 '07 #1
5 2425
Purple
404 Expert 256MB
Hi anafpires and welcome to TSDN PHP forum

I can see a number of thing which may be wrong with the line you have posted, can you be a little more detailed about the problem, post more of the code, what you expected to happen when the radio button was clicked, what actually happened.

Regards Purple
Aug 15 '07 #2
Nert
64
Could you please tell me what is wrong with this :

<input type="radio" name="choose" value="A."onClick="
form.action = 'destination http://';">

it doesn´t work ..
Thanks !
Hi anafpires,

I suggest you specify what exactly you want to happen. Specify a little bit of your problem will help us easily find some solutions for you. (^_^)


.: Nert :.
Aug 16 '07 #3
ak1dnar
1,584 Expert 1GB
Could you please tell me what is wrong with this :

<input type="radio" name="choose" value="A."onClick="
form.action = 'destination http://';">

it doesn´t work ..
Thanks !
May be This

Expand|Select|Wrap|Line Numbers
  1. <form name="form" action="" method="post">
  2. <input type="radio" name="choose" value="A." onClick="this.form.action='http://whereever/server.php';this.form.submit()" > </form>
Aug 16 '07 #4
I'd avoid anything like that to be honest, the last thing a user would be expecting when they click a radio button is to be taken to a different page.
Aug 16 '07 #5
ak1dnar
1,584 Expert 1GB
I'd avoid anything like that to be honest, the last thing a user would be expecting when they click a radio button is to be taken to a different page.
Though you put the action="http://url", it won't redirect automatically without the form.submit(). Yeah Its a FORM.
Aug 16 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ken Loomis | last post by:
Hello: On a web page I check the value of a cookie and set one of two radio buttons accordingly. function setRadioForm() { var myCookie = document.cookie; var OpenOnly =...
2
by: Jeff | last post by:
I'm trying to create a dynamic form that can have multiple groups of radio buttons (each group has two buttons) with the same name. Essentially, the form allows a user to enter as many names as...
4
by: Oscar Monteiro | last post by:
I Have to sets of Radio buttons like so: <input type="radio" name=p1 value=1> <input type="radio" name=p1 value=2> <input type="radio" name=p1 value=3> <br> <input type="radio" name=p2 value=1>...
6
by: Craig Keightley | last post by:
I have a page that has n number of radio groups (yes/No) how can i prevent the form being submitted if more than one radio group is not selected? By default all radio groups are unchecked ...
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
2
by: Peted | last post by:
I have 6 radio buttons in a column with a single line text box next to each rb. is there a general straightforward way to link a radio button to the textbox next to it. I want to be able to...
2
by: dpazza | last post by:
Hi, I'm creating a quiz on using a form in VB 2005 express. I have four sets of questions and answers (labels and radio buttons) and I change between which set of questions is currently shown on...
4
by: Blasting Cap | last post by:
I have a page that has a number of radio buttons that will be displayed to different access levels of a user who logs in to my website. For instance, if there are a dozen buttons, user1 will see...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.