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



This is NOT a server side question! This is a HTML or PHP question!
The query and database return exactly what they should!

Using a HTML radio button form as previously stated returns all the data as requested. The problem seems to be HOW does one get more than one database variable to be (transfered?) to the PHP action program.

The objective of the form is to use either a (prefered select form) or a radio button form so a user can select a person from the database. The query works! What does not is not clear to me. Either the HTML Select form or the HTML radio button form or the PHP which makes up the ACTION=post.php program.

It seems that good old HTML and/or PHP will not let me build a form that will allow more than ONE variable to be $_POSTed to the php program.

I have built both radio and select. Can not find a way to bring more that one variable back to the post.php program for posting to the database.



Adrienne Boswell wrote:
Gazing into my crystal ball I observed dba <someone@xxxxxxxxxxxxx>
writing in news:4840a527$0$4112$4c368faf@xxxxxxxxxxxxxx:

Please do not top post. See bottom of post.

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).
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.


This is a server side question, and more importantly a db question. What is your query, and what results are returned from the query?


.


Quantcast