Radio Buttons: can you include other hidden fields?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Radio Buttons: can you include other hidden fields?

Post by simonmlewis »

Hi

I have a Form. The form has 2-5 sizes which will be placed into radio buttons, but the radio buttons can only be named "size", whereas the fields are size1, size2...and so on.

I need to be able to also pass through up to 5 cart codes, depends on which radio button they click.

Is there some special feature whereby you can hidden other fields in the form, that are assigned to the radio buttons? I think the answer is no - but willing to have my eyes opened.

Simon
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: Radio Buttons: can you include other hidden fields?

Post by mikeashfield »

JQuery and AJAX.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Radio Buttons: can you include other hidden fields?

Post by simonmlewis »

Very helpful !
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: Radio Buttons: can you include other hidden fields?

Post by mikeashfield »

HTH :drunk:
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Radio Buttons: can you include other hidden fields?

Post by simonmlewis »

Sorry, it won't.
I need to do what I said - hidden fields with radio buttons.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: Radio Buttons: can you include other hidden fields?

Post by mikeashfield »

What's wrong with searching Google before posting? 3rd hit in Google: http://www.tek-tips.com/faqs.cfm?fid=4585
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: Radio Buttons: can you include other hidden fields?

Post by simonmlewis »

No you really don't get it.

I don't want to show or hide fields - I want to pass fields thru with a radio button that is assigned to that radio button option.

normally this is impossible.... or is it? That's the question.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply