home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

PHP Radio Buttion Verification

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1613
Discussions: 200,901, Posts: 2,378,860, Members: 246,270
Old June 26th, 2009, 04:37 PM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 1
Question
PHP Radio Buttion Verification

Okay, I'm making a simple form for orders. Users input info, I make sure they entered everything I want, the way I want, and it emails the results to them and me.

Everything worked until I added in radio buttons. Having trouble at the verification stage.

I have

...the buttons in a form...

<input name="theName" type="radio" value="value1" checked/> Value 1
<input name="theName" type="radio" value="value2" checked/> Value 2
<input name="theName" type="radio" value="value3" checked/> Value 3

... then the verification bit...

if(document.form.theName.value!="value1")
{[do something]}

But it keeps doing the [do something] part.

I also tried if(document.form.theName.value.checked != "value1")

And I tried both ways with == instead of != and switching stuff around.

It's probably something really stupid that I'm missing...
primasilva is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gay Toronto Radio OK, Catholic Radio No Way Beemer IMO Community 17 April 8th, 2006 02:06 PM
PHP Radio Button Email Help, Verify Password embj Webmastering and Programming 13 July 12th, 2003 10:44 PM
Math verification ILC IMO Community 3 April 23rd, 2003 11:08 PM
Help with a verification Vagabond IMO Community 5 March 29th, 2002 01:09 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2798)
Is the PSU I received dead? (10)
Install XP pro and a Vista laptop ?.. (7)
California Passes Anti-Flat-HDTV Le.. (38)
Foreign voltage (5)
New Computer wont recognize XP disc (7)
A good PSU? (9)
Fox uses old news clips to inflate .. (33)
HIS HD5770 graphic card question (10)
Dept. of HS: NSA 'Helped' Develop V.. (12)
Print spooler problem (5)
EVGA 9800 gtx help with finding a g.. (5)
Ideal cheap graph card for PC-Gamin.. (13)
Mysterious Boot manager (9)
Recent Discussions
Install XP pro and a Vista laptop ?? (7)
Is the PSU I received dead? (10)
Ideal cheap graph card for PC-Gaming? (13)
HP Pavillion Laptop ze4220 won't turn.. (7)
HIS HD5770 graphic card question (10)
Dept. of HS: NSA 'Helped' Develop Vis.. (12)
Foreign voltage (5)
Convert 5 pin Keyboard to USB (11)
Print spooler problem (5)
hybernate option (2)
Steam ID's, Gamertags etc... (1)
New Computer wont recognize XP disc (7)
World's largest Monopoly Game using G.. (328)
A good PSU? (9)
Modern Warfare 2: Who Bought It? (60)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (28)
blender help (2)
Hard drive freezes boot (1)
Mysterious Boot manager (9)
System recovery disk maker (2)
Like New Wacom 12x19 Intuos 3 + Grip .. (1)
windows 7 internet problem (3)
EVGA 9800 gtx help with finding a goo.. (5)
New Build the Montior is blank (8)
Skillsoft Network+ Study Software Que.. (8)


All times are GMT -4. The time now is 11:59 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28