Jump to content

Adding section in form depending on user


Peuplarchie

Recommended Posts

Good day to you all,

            here i come again with a probably easy question for you but I can't find what i'm looking for.

 

 

What I have:

Simple form....

<input name="artist" value="Artist" />
<input name="country" value="Country" />

<input name="cd" value="Album" />
<input name="year" value="year" />
<input name="price" value="price" />

 

 

MY GOAL:

 

 

Have a link that would add a section into the form dynamicly with out reloading of the page. (add an album from this artist)

<input name="cd" value="Album" />
<input name="year" value="year" />
<input name="recorded" value="Recorded" />

 

 

BUT:

Here is the twist, I need to be able if to add another section for DVD.

Different field is required for this...

<input name="DVD" value="DVD" />
<input name="year" value="year" />
<input name="where" value="where" />

 

 

I know there will be some JS and CSS but I think the core could be PHP.

 

 

Thanks for any help, I still searching, directions would be nice...

 

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.