Web Design Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWeb Design Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 7th, 2004, 05:59 AM
Gazdg Gazdg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 7 Gazdg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need to use 3 radio buttons to input into same field.. Possible??

Hi all

I have an area in my site that allows the user to make a selection frm 3 radio buttons. Upon selection, I want 1, 2 or 3 to be inputted into a field within the database. So, this field will contain either 1, 2 or 3.

However, I get a violation error when I try to do this, says
"Duplicate output destination 'PotentialLow'."

Anyone know a way around this???

All help greatly appreciated!!!!

Reply With Quote
  #2  
Old December 28th, 2004, 04:35 PM
FredS FredS is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Baltimore
Posts: 152 FredS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 22 h 34 m
Reputation Power: 9
did you try this

Beacuse you didn't post your code, there is no way for me to know what you tried. But I too have came across this and I solved it by doing:

<input type="radio" name="insert_this" value="1">
<input type="radio" name="insert_this" value="2">
<input type="radio" name="insert_this" value="3">

if your database is mysql, you should have something that looks like this;

$sql = "INSERT INTO table (field) VALUES ('$insert_this')";

this should solve your problem

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWeb Design Help > Need to use 3 radio buttons to input into same field.. Possible??


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT