Re: following radio & hidden does not work..... help please.



How much code do you need? The question is fairly simple. Using a radio input or a select input can you get multiple variables returned.

Three variables are needed
member_id
member_fname
member_lname

Current sql returns concatenated fname and lname. I can not get third variable to POST in action php code.

cwdjrxyz wrote:
On May 30, 4:42 pm, dba <some...@xxxxxxxxxxxxx> wrote:
using the following code with a problem....

echo "<input type='hidden' name='member_id' value=\"{$row[0]}\">{$row[0]}";

echo "<input type='radio' name='member_name' value=\"{$row[1]}\">{$row[1]}<br />";

The post_data.php program posts the following

member id is: 0009
member_name is: Ralph Jones
cccb_name is: Annexation Committee

Everything is ok but the member id. The number listed '0009' is the number of the last name in the
returned result. It is NOT the number listed with Ralph Jones which is '0007'.

This works the same with a radio button or a select statement.
Any help will be appreciated.

I agree with the answer you were given in comp.lang.php. In plain
English, it says that you are unlikely to get help on this question
anywhere unless you post a more complete version of the code or a
working example on a web site(the best way).
.


Quantcast