Jump to content

Ajax/PHP Help


andymike07

Recommended Posts

Hi Guys,

 

I'm writing a CMS for my site and I'm having a hard time figuring out how to use AJAX to add fields to the forum if a user clicks an add link. The form has a drop down menu of actors names. The drop down is dynamically created with PHP after querying the database to get the actor's names. (Included from an external file.) That works great, but I'd like to find a way to have a "Add New Model" link on the page that, when clicked, would add a 2nd instance of the drop down to the form. I'm very new to JS. So I'm not sure where to even begin to look to figure out how to set this up. Could anyone help me with this, or point me towards a tutorial on how to accomplish this? (I've attached a an image to help explain what I'm trying to accomplish.)

 

Thanks!

 

[attachment deleted by admin]

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.