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: 2040
Discussions: 200,502, Posts: 2,374,322, Members: 245,826
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? (1611)
FT HOOD attack: 7 killed 12 injured (59)
HELP!!! What do you think of this s.. (14)
Looking for a graphic card that wil.. (30)
Aero in Vista (7)
Assosiations (21493)
My 1st pc build (38)
core i7 extreme 975, nvidia 9400gt (9)
PC Modern Warfare 2: it's much wors.. (12)
Motherboards and my curse... (24)
Building my first computer (13)
slaving laptop drive (7)
How to Ship a PC (16)
Windows 7 Keeps Restarting Itself (7)
Recent Discussions
Windows Experience Index is screwed u.. (0)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
HELP!!! What do you think of this sys.. (14)
Help and Support disappeared from my .. (0)
My 1st pc build (38)
FAT32 to NTFS file system in Win2kpro (1)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)
wireless westell versalink model 327w (1)
New build 10 second reboot cycle! Won.. (3)
New Linksys Routers (2)
sometime power/Amber light (0)
Motherboards and my curse... (24)
Mic won't work. (2)
Weird Vista Internet Issue (2)
1st ever Harddisk benchmark thread (87)
high network traffic (0)
Excel password changed..... (3)
SSD or 2x640gb RAID 0 (4)


All times are GMT -4. The time now is 08:19 PM.
TechIMO Copyright 2008 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