Jump to content

Help with Radio Button! once ticked it will open a form below it.


mcking_koy

Recommended Posts

Just a quick help here...

 

When you click click this radio button.

 

<input type="radio" name="radio" id="radio_id_card" />  ID Card

 

it will open the form below the radio button.

<form>

First Name: <input type="text" name="textfield" id="textfield" />

Last Name: <input type="text" name="textfield" id="textfield" />

 

    <input type="submit" id="Send" value="Submit" />

</form>

 

-------------------------------

 

hope someone can help me... i really have a bad time thinking of ways to do it..

thank you in advance..

Link to comment
Share on other sites

This is not a php issue.  Well, I take that back, it can be.  If you have the form submitted once a radio is clicked then php can produce your extra form afterwards once the post data is retrieved, but that's definitely counterproductive and I doubt anybody would try and do it that way.

 

Look into javascript to lend you a helping hand, jquery is also a lot of help, as it can probably do exactly what you're asking with little amounts of code.

http://jquery.com/

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.