[PHP-DB] Radio buttons

2002-08-26 Thread Gerd Ulrich

Hello, I get forms posted and working, but as soon as I include radio
buttons, the whole form doesn't function anymore. The code of the radio
button part is included in this posting.
Can you tell me, what I'm doing wrong?
Help would be greatly appreciated!

S. Maier


TR
  TD width=35%Wie häufig surfen Sie im Internet? /TD
  TD vAlign=center width=15%
DIV align=rightFONT size=-1selten/FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=1
name=surf_erf /FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=2
name=surf_erf /FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=3
name=surf_erf /FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=4
name=surf_erf /FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=5
name=surf_erf /FONT/DIV/TD
  TD width=5% bgColor=#cc
DIV align=centerFONT size=-1INPUT type=radio value=6
name=surf_erf /FONT/DIV/TD
  TD vAlign=center width=20%FONT size=-1oft /FONT/TD/TR




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Radio buttons

2002-08-26 Thread Support @ Fourthrealm.com

Your radio buttons look fine.  I would ensure to add quotes (single or 
double) around the attribute settings, for HTML compliance.  If you must go 
without quotes, then make sure that you don't put spaces in any of the 
attribute values.

INPUT type=radio value=6 name=surf_erf

As for the form not working... do you have a JavaScript that works with 
these radio buttons?

Or, is the radio button name the same as the Submit button?



At 07:25 PM 8/26/2002 +0200, you wrote:
Hello, I get forms posted and working, but as soon as I include radio
buttons, the whole form doesn't function anymore. The code of the radio
button part is included in this posting.
Can you tell me, what I'm doing wrong?
Help would be greatly appreciated!

S. Maier


 TR
   TD width=35%Wie häufig surfen Sie im Internet? /TD
   TD vAlign=center width=15%
 DIV align=rightFONT size=-1selten/FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=1
 name=surf_erf /FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=2
 name=surf_erf /FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=3
 name=surf_erf /FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=4
 name=surf_erf /FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=5
 name=surf_erf /FONT/DIV/TD
   TD width=5% bgColor=#cc
 DIV align=centerFONT size=-1INPUT type=radio value=6
 name=surf_erf /FONT/DIV/TD
   TD vAlign=center width=20%FONT size=-1oft /FONT/TD/TR




--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

- - - - - - - - - - - - - - - - - - - - -
Fourth Realm Solutions
[EMAIL PROTECTED]
http://www.fourthrealm.com
Tel: 519-739-1652
- - - - - - - - - - - - - - - - - - - - -


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] radio buttons

2002-05-15 Thread Natividad Castro

Hi everyone,
I have two radio buttons. Depending on what the users choose I will run an
update statement.
The field that needs to be update are
code_source and verify if radio button 1 is selected
ELSE
UPDATE
reason_rejected and first_reject if radio button 2 is selected

this my two buttons
input name=status type=RADIO value=? echo $verify; ?Approved
input name=status type=RADIO value=? echo $first_reject; ?No
Approved

The values for the radio buttons I'm assigning from a table. Both are enum
data type.

This is my code, but it doesn't work properly. It will update only
reason_rected and first_reject fields no matter what radio button a select.

$query = (update project set source_code='$source_code', verify='yes' where
verify = '$status');
$test_result = mysql_query($query);

if (!$test_result)
 {

$query = (update project set reason_rejected='$reason_rejected',
first_reject='yes' where first_reject = '$status');
$test_result2 = mysql_query($query);
}

Any help is greatly appreciate it
Thanks in advanced
Nato


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] radio buttons

2002-05-15 Thread Ryan Jameson (USA)

We need more of your code, as far as I can tell the variables $verify, and 
$first_reject don't exist and since they don't it doesn't matter which button is 
selected the value is blank. 

Radio buttons are a little odd... in this case depending on which is selected it will 
either assign $verify or $first_reject to the variable $status. However, neither seems 
to be set, hence $status has no value.

 Ryan

-Original Message-
From: Natividad Castro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 6:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] radio buttons


Hi everyone,
I have two radio buttons. Depending on what the users choose I will run an
update statement.
The field that needs to be update are
code_source and verify if radio button 1 is selected
ELSE
UPDATE
reason_rejected and first_reject if radio button 2 is selected

this my two buttons
input name=status type=RADIO value=? echo $verify; ?Approved
input name=status type=RADIO value=? echo $first_reject; ?No
Approved

The values for the radio buttons I'm assigning from a table. Both are enum
data type.

This is my code, but it doesn't work properly. It will update only
reason_rected and first_reject fields no matter what radio button a select.

$query = (update project set source_code='$source_code', verify='yes' where
verify = '$status');
$test_result = mysql_query($query);

if (!$test_result)
 {

$query = (update project set reason_rejected='$reason_rejected',
first_reject='yes' where first_reject = '$status');
$test_result2 = mysql_query($query);
}

Any help is greatly appreciate it
Thanks in advanced
Nato


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php