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: 2612
Discussions: 203,417, Posts: 2,407,403, Members: 248,942
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? (3724)
nVIDIA GTX 260 vs ATI 5770 (6)
and she wanted to be VP? (51)
GPU upgrade from 8600 GT (14)
New PC Heavy Gaming Rig (8)
[F@H Chat]2/6/10 New thread for ya'.. (25)
Need for Speed Shift (7)
Best route for upgrade (several opt.. (5)
Motherboards with 2 PCIE x16 slots (8)
Graphene transistors promise 100GHz.. (7)
I want to buid a pc with this case (14)
Animated GIFs don't animate? (13)
Upgrading (5)
Upgrading Video (28)
Recent Discussions
New PC Heavy Gaming Rig (9)
[F@H Chat]2/6/10 New thread for ya' s.. (25)
GPU upgrade from 8600 GT (14)
tecumseh snow blower (0)
nVIDIA GTX 260 vs ATI 5770 (6)
PLEASE MUCH NEEDED HELP! (4)
Information on the Foxconn RC4107MA M.. (5)
3 monitors (1)
HD5870 Question (18)
Microsoft Wireless Keyboard 3000 (13)
Laptop - HDTV Connection Using HDMI C.. (2)
How Good is This $450 MSI Laptop? (3)
Wireless G printer w/wrt160n (0)
SpeedFan Temp Monitor Help (3)
BSOD - IRQL not less or equal - HELP! (0)
Unable to find LAN (7)
Best route for upgrade (several optio.. (5)
should i upgrade whole pc or just vid.. (2)
WEBCAM / XP / XP64 / VISTA (7)
routers and switches OPERATING SYSTEM.. (0)
One dumb nube and a cisco 3550 (1)
120mm fan on top of case??? (12)
Is my hard drive going bad? Please h.. (2)
rsync over passwordless ssh in a cron.. (4)
Wii at buy.com for $374 - Carnival Sm.. (7)


All times are GMT -4. The time now is 04:03 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